Skip to content

Commit

Permalink
Update regex to remove invalid escape sequence error
Browse files Browse the repository at this point in the history
Reported in #59. Fix by @figorr
  • Loading branch information
barleybobs authored Sep 17, 2024
1 parent 886afe0 commit 722aea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ecowater_softener/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def _async_update_data(self):
ecowaterDevice = Ecowater(self._username, self._password, self._serialnumber)
data_json = await self.hass.async_add_executor_job(lambda: ecowaterDevice._get())

nextRecharge_re = "device-info-nextRecharge'\)\.html\('(?P<nextRecharge>.*)'"
nextRecharge_re = r"device-info-nextRecharge'\)\.html\('(?P<nextRecharge>.*)'"

data[STATUS] = 'Online' if data_json['online'] == True else 'Offline'
data[DAYS_UNTIL_OUT_OF_SALT] = data_json['out_of_salt_days']
Expand Down

0 comments on commit 722aea4

Please sign in to comment.