mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-01 04:54:29 +02:00
black
This commit is contained in:
parent
8a3af96fee
commit
8cf278be64
2 changed files with 6 additions and 3 deletions
|
@ -838,7 +838,10 @@ class MikrotikControllerData:
|
|||
|
||||
dhcpserver_query = False
|
||||
for uid in self.data["dhcp"]:
|
||||
if not dhcpserver_query and self.data["dhcp"][uid]["server"] not in self.data["dhcp-server"]:
|
||||
if (
|
||||
not dhcpserver_query
|
||||
and self.data["dhcp"][uid]["server"] not in self.data["dhcp-server"]
|
||||
):
|
||||
self.get_dhcp_server()
|
||||
dhcpserver_query = True
|
||||
|
||||
|
@ -865,7 +868,7 @@ class MikrotikControllerData:
|
|||
data=self.data["dhcp-server"],
|
||||
source=self.api.path("/ip/dhcp-server"),
|
||||
key="name",
|
||||
vals=[{"name": "name"}, {"name": "interface", "default": "unknown"}, ],
|
||||
vals=[{"name": "name"}, {"name": "interface", "default": "unknown"}],
|
||||
)
|
||||
|
||||
# ---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue