Fix bug on creating entities with unknown state - Garages Amsterdam (#131619)

pull/131538/head
Klaas Schoute 2024-11-26 13:07:32 +01:00 committed by GitHub
parent b0b72326d8
commit f5d323679f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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
)