Commit 7be3f9d Marcus Terasa
committed
1 parent 81c1f8b commit 7be3f9d Copy full SHA for 7be3f9d
File tree 1 file changed +8
-4
lines changed
custom_components/foxess_api
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,16 @@ def native_value(self) -> datetime | StateType:
88
88
try :
89
89
return self .entity_description .state (self .coordinator .data )
90
90
except KeyError :
91
- LOGGER .warning ("Could not get state for %s. If this error persists, check API for changes. " ,
92
- "(Current version is %s)" , self .entity_description .key , API_VERSION )
91
+ LOGGER .warning ("Could not get state for %s. If this error persists, "
92
+ "check API for changes. (Current version is %s)" ,
93
+ self .entity_description .key ,
94
+ API_VERSION )
93
95
return None
94
96
except TypeError :
95
- LOGGER .warning ("Type error for %s. If this error persists, check API for changes. " ,
96
- "(Current version is %s)" , self .entity_description .key , API_VERSION )
97
+ LOGGER .warning ("Type error for %s. If this error persists, "
98
+ "check API for changes. (Current version is %s)" ,
99
+ self .entity_description .key ,
100
+ API_VERSION )
97
101
return None
98
102
except Exception as e :
99
103
LOGGER .error (e )
You can’t perform that action at this time.
0 commit comments