Skip to content

Commit

Permalink
add Tempo sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
saniho committed Jan 9, 2023
1 parent 7f29d6f commit 25760a6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions custom_components/apiEnedis/sensorEnedis.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,10 @@ def getStatusTempo(self):
valeur = self._myDataEnedis.getTempo().getValue()[maDate]
# valeur = random.randrange(3) + 1 # pour mettre des valeurs aléatoire
status_counts["forecast"][clef] = valeur
if (maDate == today):
state = valeur
status_counts["begin"] = today
status_counts["end"] = end
# ajout last update du sensor a
if self._myDataEnedis.getTimeLastCall() is not None:
state = "{:.3f}".format(
123456
)
return status_counts, state

def getStatusEnergyDetailHours(self, typeSensor=_consommation):
Expand Down

0 comments on commit 25760a6

Please sign in to comment.