mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-01 13:04:28 +02:00
fixed typo in captive portal #200
This commit is contained in:
parent
ce54b6ef1b
commit
7d1915b566
1 changed files with 4 additions and 4 deletions
|
@ -2029,11 +2029,11 @@ class MikrotikControllerData:
|
|||
if self.option_sensor_client_captive:
|
||||
if uid in self.data["hostspot_host"]:
|
||||
self.data["host"][uid]["authorized"] = self.data["hostspot_host"][
|
||||
"authorized"
|
||||
]
|
||||
uid
|
||||
]["authorized"]
|
||||
self.data["host"][uid]["bypassed"] = self.data["hostspot_host"][
|
||||
"bypassed"
|
||||
]
|
||||
uid
|
||||
]["bypassed"]
|
||||
else:
|
||||
if "authorized" in self.data["host"][uid]:
|
||||
del self.data["host"][uid]["authorized"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue