File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
custom_components/enphase_envoy Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ def register_url(
747747 return self .uri_registry [attr ]
748748
749749 def _clear_endpoint_cache (self , attr ):
750- if attr not in self .uri_registry [ attr ] :
750+ if attr not in self .uri_registry :
751751 return
752752
753753 # Setting last_fetch to 0 ensures it will be fetched upon next run
@@ -1157,6 +1157,13 @@ async def update_endpoints(self, endpoints=None):
11571157 endpoint ,
11581158 time .time () - endpoint_settings ["last_fetch" ],
11591159 )
1160+ else :
1161+ _LOGGER .info (
1162+ "Skipping update of %s: last fetch: %s, cache time: %s" ,
1163+ endpoint ,
1164+ endpoint_settings ["last_fetch" ],
1165+ endpoint_settings ["cache_time" ],
1166+ )
11601167
11611168 if self .data :
11621169 self .data .set_endpoint_data (endpoint , getattr (self , endpoint ))
You can’t perform that action at this time.
0 commit comments