mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix Huawei LTE error message on service call without URL and routers (#30250)
This commit is contained in:
parent
59fee12b45
commit
e4cda9ae0b
@ -439,6 +439,9 @@ async def async_setup(hass: HomeAssistantType, config) -> bool:
|
|||||||
routers = hass.data[DOMAIN].routers
|
routers = hass.data[DOMAIN].routers
|
||||||
if url:
|
if url:
|
||||||
router = routers.get(url)
|
router = routers.get(url)
|
||||||
|
elif not routers:
|
||||||
|
_LOGGER.error("%s: no routers configured", service.service)
|
||||||
|
return
|
||||||
elif len(routers) == 1:
|
elif len(routers) == 1:
|
||||||
router = next(iter(routers.values()))
|
router = next(iter(routers.values()))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user