Fix bug on creating entities with unknown state - Garages Amsterdam (#131619)
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…
Reference in New Issue