diff --git a/custom_components/mypyllant/manifest.json b/custom_components/mypyllant/manifest.json index 77f80e6..c239c43 100644 --- a/custom_components/mypyllant/manifest.json +++ b/custom_components/mypyllant/manifest.json @@ -10,7 +10,7 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/signalkraft/mypyllant-component/issues", "requirements": [ - "myPyllant==0.7.8" + "myPyllant==0.7.9" ], "version": "v0.7.3" } diff --git a/custom_components/mypyllant/sensor.py b/custom_components/mypyllant/sensor.py index 3da87a3..e9d5db9 100644 --- a/custom_components/mypyllant/sensor.py +++ b/custom_components/mypyllant/sensor.py @@ -111,9 +111,10 @@ async def create_system_sensors( sensors.append( ZoneHeatingOperatingModeSensor(index, zone_index, system_coordinator) ) - sensors.append( - ZoneHeatingStateSensor(index, zone_index, system_coordinator) - ) + if zone.heating_state is not None: + sensors.append( + ZoneHeatingStateSensor(index, zone_index, system_coordinator) + ) sensors.append( ZoneCurrentSpecialFunctionSensor(index, zone_index, system_coordinator) ) diff --git a/dev-requirements.txt b/dev-requirements.txt index d852688..d8609fc 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -15,5 +15,5 @@ types-PyYAML~=6.0.12.12 pytest==7.4.3 pytest-cov==4.1.0 pytest-homeassistant-custom-component==0.13.77 -myPyllant==0.7.8 +myPyllant==0.7.9 dacite~=1.7.0 \ No newline at end of file