Skip to content

Commit

Permalink
🔎 Add broken cache file when necessary
Browse files Browse the repository at this point in the history
This should help further issues like #82
  • Loading branch information
kamaradclimber committed Jan 27, 2024
1 parent 0616d88 commit 1187c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/rte_ecowatt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async def update_method(self):
json_body = json.loads(body)
if "signals" not in json_body:
if loaded_from_cache:
raise Exception(f"Cached data is invalid. Removing `{self._custom_store.path}` and restart HA should help")
raise Exception(f"Cached data is invalid. Removing `{self._custom_store.path}` and restart HA should help. Data is cache is: {body}")
else:
raise Exception(f"Fetched data is invalid, it does not have 'signals' key. {body}")
signals = json_body["signals"]
Expand Down

0 comments on commit 1187c6c

Please sign in to comment.