Skip to content

Commit 12681d7

Browse files
authored
Merge pull request #29 from jwillemsen/jwi-regex
Fix regex warning with HA 2024.2.0
2 parents 9d59ecc + f295c32 commit 12681d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/daikin_residential_altherma/daikin_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def retrieveAccessToken(self, userName, password):
307307
resp = await self.hass.async_add_executor_job(func)
308308
body = resp.text
309309
# _LOGGER.debug('BODY: %s', body)
310-
regex = "(\d+-\d-\d+)"
310+
regex = '(\\d+-\\d-\\d+)'
311311
ms = re.search(regex, body)
312312
version = ms[0]
313313
_LOGGER.debug("VERSION: %s", version)

0 commit comments

Comments
 (0)