mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
ubus: Make multiple instances work again (#8571)
Back in "ubus: Refresh session on Access denied (#8111)" I added the decorator _refresh_on_acccess_denied. Somehow that stopped multiple ubus trackers from working in parallel, and only the one first init'ed worked. Changing the order of the decorators fixes the issue but, I'm sorry to say I can't figure out why. There's some magic somewhere which I'm missing. Signed-off-by: Anton Lundin <glance@acc.umu.se>
This commit is contained in:
parent
8f47a9109c
commit
0c09cfc6c4
@ -115,8 +115,8 @@ class UbusDeviceScanner(DeviceScanner):
|
|||||||
|
|
||||||
return self.mac2name.get(device.upper(), None)
|
return self.mac2name.get(device.upper(), None)
|
||||||
|
|
||||||
@Throttle(MIN_TIME_BETWEEN_SCANS)
|
|
||||||
@_refresh_on_acccess_denied
|
@_refresh_on_acccess_denied
|
||||||
|
@Throttle(MIN_TIME_BETWEEN_SCANS)
|
||||||
def _update_info(self):
|
def _update_info(self):
|
||||||
"""Ensure the information from the Luci router is up to date.
|
"""Ensure the information from the Luci router is up to date.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user