From 182bf1edef9004d2301d6ffee0156dc3b44e6ce6 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 11 Sep 2019 20:42:54 +0200 Subject: [PATCH] Deprecate Python 3.6.0 (#26575) * Deprecate Python 3.6.1 * Update msg --- homeassistant/bootstrap.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index ef294491141..7c4ec731b49 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -97,6 +97,17 @@ async def async_from_config_dict( stop = time() _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