mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 22:25:13 +02:00
Fix bug on creating entities with unknown state - Garages Amsterdam (#131619)
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user