Fix Netatmo non specified sensor types (#41517)

This commit is contained in:
cgtobi 2020-10-09 08:37:56 +02:00 committed by GitHub
parent 3a1ee2f654
commit 22bef1d0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,7 @@ async def async_setup_entry(hass, entry, async_add_entities):
conditions = [
c.lower()
for c in data_class.get_monitored_conditions(module_id=module["_id"])
if c in SENSOR_TYPES
]
for condition in conditions:
if f"{condition}_value" in SENSOR_TYPES: