mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix bug on creating entities with unknown state - Garages Amsterdam (#131619)
This commit is contained in:
parent
b0b72326d8
commit
f5d323679f
@ -29,7 +29,7 @@ async def async_setup_entry(
|
||||
async_add_entities(
|
||||
GaragesAmsterdamSensor(coordinator, entry.data["garage_name"], info_type)
|
||||
for info_type in SENSORS
|
||||
if getattr(coordinator.data[entry.data["garage_name"]], info_type) != ""
|
||||
if getattr(coordinator.data[entry.data["garage_name"]], info_type) is not None
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user