mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
parent
adaa200935
commit
182bf1edef
@ -97,6 +97,17 @@ async def async_from_config_dict(
|
|||||||
stop = time()
|
stop = time()
|
||||||
_LOGGER.info("Home Assistant initialized in %.2fs", stop - start)
|
_LOGGER.info("Home Assistant initialized in %.2fs", stop - start)
|
||||||
|
|
||||||
|
if sys.version_info[:3] < (3, 6, 1):
|
||||||
|
msg = (
|
||||||
|
"Python 3.6.0 support is deprecated and will "
|
||||||
|
"be removed in the first release after October 2. Please "
|
||||||
|
"upgrade Python to 3.6.1 or higher."
|
||||||
|
)
|
||||||
|
_LOGGER.warning(msg)
|
||||||
|
hass.components.persistent_notification.async_create(
|
||||||
|
msg, "Python version", "python_version"
|
||||||
|
)
|
||||||
|
|
||||||
return hass
|
return hass
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user