Skip to content

Commit

Permalink
Incompatibilité Home Assistant 2022.5 #112
Browse files Browse the repository at this point in the history
Régler erreur check_tarif
  • Loading branch information
FrancoLoco authored May 7, 2022
1 parent c29f0b1 commit f5f7ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hilo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def high_times(self):

def check_tarif(self):
tarif = "low"
base_sensor = f"sensor.{HILO_ENERGY_TOTAL}_daily_low"
base_sensor = f"sensor.{HILO_ENERGY_TOTAL}_low"
energy_used = self._hass.states.get(base_sensor)
if not energy_used:
LOG.warning(f"check_tarif: Unable to find state for {base_sensor}")
Expand Down

0 comments on commit f5f7ed6

Please sign in to comment.