mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-21 11:14:28 +02:00
Mikrotik support on custom hardware, fixes #135
This commit is contained in:
parent
5badbc9053
commit
5973315048
1 changed files with 19 additions and 14 deletions
|
@ -1231,6 +1231,11 @@ class MikrotikControllerData:
|
|||
# ---------------------------
|
||||
def get_system_routerboard(self):
|
||||
"""Get routerboard data from Mikrotik"""
|
||||
if self.data["resource"]["board-name"] == "x86":
|
||||
self.data["routerboard"]["routerboard"] = False
|
||||
self.data["routerboard"]["model"] = "x86"
|
||||
self.data["routerboard"]["serial-number"] = "N/A"
|
||||
else:
|
||||
self.data["routerboard"] = parse_api(
|
||||
data=self.data["routerboard"],
|
||||
source=self.api.path("/system/routerboard"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue