Skip to content

Commit

Permalink
fix coordinator data keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Aohzan committed Jan 26, 2023
1 parent f217e55 commit 194fa77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 4.3.2

- Fix coordinator data keys

## 4.3.1

- Fix values assignments
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ecodevices/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"issue_tracker": "https://github.com/Aohzan/ecodevices/issues",
"codeowners": ["@Aohzan"],
"config_flow": true,
"requirements": ["xmltodict==0.12.0", "pyecodevices==1.5.0"],
"requirements": ["xmltodict==0.12.0", "pyecodevices==1.5.1"],
"dependencies": [],
"version": "4.3.1",
"iot_class": "local_polling"
Expand Down
8 changes: 4 additions & 4 deletions custom_components/ecodevices/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,10 @@ def extra_state_attributes(self) -> Mapping[str, Any]:
"T1_BBRHCJW"
),
"index_heures_pleines_jour_blanc": self.coordinator.data.get(
"T1_BBRHCJB"
"T1_BBRHPJW"
),
"index_heures_creuses_jour_rouge": self.coordinator.data.get(
"T1_BBRHCJB"
"T1_BBRHCJR"
),
"index_heures_pleines_jour_rouge": self.coordinator.data.get(
"T1_BBRHPJR"
Expand Down Expand Up @@ -486,10 +486,10 @@ def extra_state_attributes(self) -> Mapping[str, Any]:
"T2_BBRHCJB"
),
"index_heures_creuses_jour_rouge": self.coordinator.data.get(
"T2_BBRHCJB"
"T2_BBRHPJW"
),
"index_heures_pleines_jour_rouge": self.coordinator.data.get(
"T2_BBRHPJR"
"T2_BBRHCJR"
),
"etat": self.coordinator.data.get("T2_MOTDETAT"),
}
Expand Down

0 comments on commit 194fa77

Please sign in to comment.