Skip to content

Commit 06e0ef6

Browse files
committed
make messages more descriptive
1 parent e67d829 commit 06e0ef6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

custom_components/entity_controller/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ async def async_setup(hass, config):
174174
"""Load graph configurations."""
175175

176176
if(((datetime.now()).astimezone()).tzinfo != dt.as_local(dt.now()).tzinfo):
177-
_LOGGER.error("Timezones do not Match")
178-
_LOGGER.error("DateTime: %s", ((datetime.now()).astimezone()).tzinfo )
179-
_LOGGER.error("HA DT: %s", dt.as_local(dt.now()).tzinfo )
177+
_LOGGER.error("Timezones do not Match. Mismatched timezones may cause unintended behaviours.")
178+
_LOGGER.error("System DateTime: %s", ((datetime.now()).astimezone()).tzinfo )
179+
_LOGGER.error("Home Assistant DateTime: %s", dt.as_local(dt.now()).tzinfo )
180180

181181
component = EntityComponent(_LOGGER, DOMAIN, hass)
182182

0 commit comments

Comments
 (0)