mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-26 10:48:41 +02:00
Change board name for non mikrotik hardware #363
This commit is contained in:
parent
890dd11e8b
commit
de1ca6a6f6
1 changed files with 3 additions and 1 deletions
|
@ -1376,7 +1376,9 @@ class MikrotikCoordinator(DataUpdateCoordinator[None]):
|
|||
# ---------------------------
|
||||
def get_system_routerboard(self) -> None:
|
||||
"""Get routerboard data from Mikrotik"""
|
||||
if self.ds["resource"]["board-name"] in ("x86", "CHR"):
|
||||
if self.ds["resource"]["board-name"].startswith("x86") or self.ds["resource"][
|
||||
"board-name"
|
||||
].startswith("CHR"):
|
||||
self.ds["routerboard"]["routerboard"] = False
|
||||
self.ds["routerboard"]["model"] = self.ds["resource"]["board-name"]
|
||||
self.ds["routerboard"]["serial-number"] = "N/A"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue