Skip to content

Commit

Permalink
add type_heures_demain info on teleinfo inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aohzan committed Feb 25, 2023
1 parent 1d9d1d7 commit a6276a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 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.4.0

- Add `type_heures_demain` info on teleinfo inputs

## 4.3.2

- Fix coordinator data keys
Expand Down
2 changes: 2 additions & 0 deletions custom_components/ecodevices/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ def extra_state_attributes(self) -> Mapping[str, Any]:
"index_heures_pleines_jour_rouge": self.coordinator.data.get(
"T1_BBRHPJR"
),
"type_heures_demain": self.coordinator.data.get("T1_DEMAIN"),
"etat": self.coordinator.data.get("T1_MOTDETAT"),
}
raise EcoDevicesIncorrectValueError("Data not received.")
Expand Down Expand Up @@ -491,6 +492,7 @@ def extra_state_attributes(self) -> Mapping[str, Any]:
"index_heures_pleines_jour_rouge": self.coordinator.data.get(
"T2_BBRHCJR"
),
"type_heures_demain": self.coordinator.data.get("T2_DEMAIN"),
"etat": self.coordinator.data.get("T2_MOTDETAT"),
}
raise EcoDevicesIncorrectValueError("Data not received.")
Expand Down

0 comments on commit a6276a1

Please sign in to comment.