File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
custom_components/entity_controller Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 173
173
async def async_setup (hass , config ):
174
174
"""Load graph configurations."""
175
175
176
- if ((( datetime .now ()).astimezone ()).tzinfo != dt .as_local (dt .now ()).tzinfo ):
176
+ if (str ((( datetime .now ()).astimezone ()).tzinfo ) != str ( dt .as_local (dt .now ()).tzname ()) ):
177
177
_LOGGER .error ("Timezones do not Match. Mismatched timezones may cause unintended behaviours." )
178
178
_LOGGER .error ("System DateTime: %s" , ((datetime .now ()).astimezone ()).tzinfo )
179
- _LOGGER .error ("Home Assistant DateTime: %s" , dt .as_local (dt .now ()).tzinfo )
179
+ _LOGGER .error ("Home Assistant DateTime: %s" , dt .as_local (dt .now ()).tzname () )
180
180
181
181
component = EntityComponent (_LOGGER , DOMAIN , hass )
182
182
You can’t perform that action at this time.
0 commit comments