Skip to content

Commit

Permalink
fix: combustion_chamber_temperature sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
maheus committed Feb 24, 2025
1 parent a671e6c commit b5f0975
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.3.1
----
- fix combustion chamber sensor

3.3.0
----

Expand Down
10 changes: 9 additions & 1 deletion custom_components/fumis/fumis/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,15 @@ def from_dict(data: dict):
temperature = [d for d in temperatures if (d['onMainScreen'] == True and d['actualType'] > 0)][0]
except IndexError:
temperature = {}
combustion_chamber_temperature = [d for d in temperatures if d['id'] == 7][0]
try:
combustion_chamber_temperature = [d for d in temperatures if d['id'] == 7][0]
except IndexError:
for d in variables:
if d['id'] == 11:
combustion_chamber_temperature = {"actual", d['value']}
else:
combustion_chamber_temperature = {}
combustion_chamber_temperature = [d for d in variables if d['id'] == 11][0]
fuels = controller.get("fuels", [])
fuel = [d for d in fuels if d['id'] == 1][0]
ecoMode = controller.get("ecoMode", {})
Expand Down
2 changes: 1 addition & 1 deletion custom_components/fumis/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/maheus/fumis_integration/issues",
"requirements": ["aiofiles>=0.5.0", "requests>=2.24.0"],
"version": "3.3.0"
"version": "3.3.1"
}

0 comments on commit b5f0975

Please sign in to comment.