diff --git a/homeassistant/components/fyta/manifest.json b/homeassistant/components/fyta/manifest.json index 07387f4ab0569e..c07a19a3db0245 100644 --- a/homeassistant/components/fyta/manifest.json +++ b/homeassistant/components/fyta/manifest.json @@ -7,5 +7,5 @@ "integration_type": "hub", "iot_class": "cloud_polling", "quality_scale": "platinum", - "requirements": ["fyta_cli==0.6.0"] + "requirements": ["fyta_cli==0.6.3"] } diff --git a/homeassistant/components/fyta/sensor.py b/homeassistant/components/fyta/sensor.py index 262d0b6d1f4f7a..a351d79dd8bbae 100644 --- a/homeassistant/components/fyta/sensor.py +++ b/homeassistant/components/fyta/sensor.py @@ -145,7 +145,7 @@ async def async_setup_entry( FytaPlantSensor(coordinator, entry, sensor, plant_id) for plant_id in coordinator.fyta.plant_list for sensor in SENSORS - if sensor.key in dir(coordinator.data[plant_id]) + if sensor.key in dir(coordinator.data.get(plant_id)) ] async_add_entities(plant_entities) diff --git a/requirements_all.txt b/requirements_all.txt index 5c8584b0df98fc..699193d350ec74 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -924,7 +924,7 @@ freesms==0.2.0 fritzconnection[qr]==1.13.2 # homeassistant.components.fyta -fyta_cli==0.6.0 +fyta_cli==0.6.3 # homeassistant.components.google_translate gTTS==2.2.4 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 353182b1714ee2..31420e7f7afc0e 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -777,7 +777,7 @@ freebox-api==1.1.0 fritzconnection[qr]==1.13.2 # homeassistant.components.fyta -fyta_cli==0.6.0 +fyta_cli==0.6.3 # homeassistant.components.google_translate gTTS==2.2.4