mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Fix "Unable to find entity" at Waze component (#21087)
Should fix https://github.com/home-assistant/home-assistant/issues/20953 (Unable to create this issue on my HA platform)
This commit is contained in:
parent
eb573c2701
commit
b44ff38f5a
@ -70,7 +70,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||||||
sensor = WazeTravelTime(name, origin, destination, region,
|
sensor = WazeTravelTime(name, origin, destination, region,
|
||||||
incl_filter, excl_filter, realtime)
|
incl_filter, excl_filter, realtime)
|
||||||
|
|
||||||
add_entities([sensor], True)
|
add_entities([sensor])
|
||||||
|
|
||||||
# Wait until start event is sent to load this component.
|
# Wait until start event is sent to load this component.
|
||||||
hass.bus.listen_once(
|
hass.bus.listen_once(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user