Skip to content

Commit

Permalink
Updated base library, made ZoneHeatingStateSensor optional
Browse files Browse the repository at this point in the history
  • Loading branch information
signalkraft committed Feb 8, 2024
1 parent 887b7ae commit fa38580
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion custom_components/mypyllant/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
7 changes: 4 additions & 3 deletions custom_components/mypyllant/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fa38580

Please sign in to comment.