mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-15 11:54:30 +02:00
Fixed invalid escape sequence, fixes #401
This commit is contained in:
parent
6f888a5c08
commit
ee886e0365
1 changed files with 1 additions and 1 deletions
|
@ -1587,7 +1587,7 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
|
|||
try:
|
||||
full_version = self.ds["fw-update"].get("installed-version")
|
||||
split_end = min(len(full_version), 4)
|
||||
version = re.sub("[^0-9\.]", "", full_version[0:split_end])
|
||||
version = re.sub("[^0-9\\.]", "", full_version[0:split_end])
|
||||
self.major_fw_version = int(version.split(".")[0])
|
||||
self.minor_fw_version = int(version.split(".")[1])
|
||||
_LOGGER.debug(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue