Skip to content

Commit a4bea2e

Browse files
Fix caching
1 parent b3a5563 commit a4bea2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

custom_components/tauron_amiplus/config_flow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ async def async_step_config_options(self, user_input=None):
160160
data_schema=self.get_schema_config_options(user_input),
161161
errors=errors,
162162
description_placeholders=description_placeholders,
163+
last_step=True
163164
)
164165

165166
return self.async_show_form(

custom_components/tauron_amiplus/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def get_raw_values_daily_for_day(self, day, generation):
337337
}
338338
self.log(f"Downloading daily data for day: {day_str}, generation: {generation}")
339339
values = self.get_chart_values(payload)
340-
if values is not None and not any(a is None for a in values['data']['values']):
340+
if values is not None and not any(a is None and a != 0 for a in values['data']['values']):
341341
self.add_all_data(values, day)
342342
self._cache.add_value(day, generation, values)
343343
self.log(f"Downloaded daily data for day: {day_str}, generation: {generation}")

0 commit comments

Comments
 (0)