mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Deprecate Python 3.5.3 (#24177)
This commit is contained in:
parent
84baaa324c
commit
e3307213b1
@ -94,6 +94,13 @@ async def async_from_config_dict(config: Dict[str, Any],
|
|||||||
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, 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
|
# TEMP: warn users for invalid slugs
|
||||||
# Remove after 0.94 or 1.0
|
# Remove after 0.94 or 1.0
|
||||||
if cv.INVALID_SLUGS_FOUND or cv.INVALID_ENTITY_IDS_FOUND:
|
if cv.INVALID_SLUGS_FOUND or cv.INVALID_ENTITY_IDS_FOUND:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user