From e3307213b179252bf8772edc47a83f1cb1ab6881 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Wed, 29 May 2019 14:30:00 -0700 Subject: [PATCH] Deprecate Python 3.5.3 (#24177) --- homeassistant/bootstrap.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index d63caf9e76f..96417c54b12 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -94,6 +94,13 @@ async def async_from_config_dict(config: Dict[str, Any], stop = time() _LOGGER.info("Home Assistant initialized in %.2fs", stop-start) + if sys.version_info[:3] < (3, 6, 0): + hass.components.persistent_notification.async_create( + "Python 3.5 support is deprecated and will " + "be removed in the first release after August 1. Please " + "upgrade Python.", "Python version", "python_version" + ) + # TEMP: warn users for invalid slugs # Remove after 0.94 or 1.0 if cv.INVALID_SLUGS_FOUND or cv.INVALID_ENTITY_IDS_FOUND: