Update coordinator.py

Futureproof wifi module 7.13 change
This commit is contained in:
Tomaae 2024-02-14 22:05:09 +01:00 committed by GitHub
parent 5feb9ad3c2
commit 50abfe86b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1981,7 +1981,7 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
def get_capsman_hosts(self) -> None:
"""Get CAPS-MAN hosts data from Mikrotik"""
if self.major_fw_version >= 7 and self.minor_fw_version > 12:
if self.major_fw_version > 7 or (self.major_fw_version == 7 and self.minor_fw_version >= 13):
registration_path = "/interface/wifi/registration-table"
else: