Skip to content

Commit

Permalink
correction si pas de ecowatt
Browse files Browse the repository at this point in the history
  • Loading branch information
saniho committed Sep 9, 2024
1 parent 4796473 commit 8f400ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/apiEnedis/myCheckData.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def analyseValueEcoWatt(self, data):
from datetime import datetime
for date in data.keys():
# si pas de données
if "detail" in data.keys(): return listeEcoWattDate
if "detail" in data.keys():
return listeEcoWattDate
for detailDate in data[date]["detail"]:
detailDatekey = datetime.strptime(detailDate, "%Y-%m-%d %H:%M:%S")
listeEcoWattDate[detailDatekey] = data[date]["detail"][detailDate]
Expand Down

0 comments on commit 8f400ff

Please sign in to comment.