1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00

Rephrase upgrade notification message to avoid installing Python 3.10 (#61181)

This commit is contained in:
Robert Blomqvist 2021-12-08 02:19:23 +01:00 committed by GitHub
parent d69c6e3ab3
commit ea58778a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,8 +252,7 @@ async def async_from_config_dict(
f"{'.'.join(str(x) for x in sys.version_info[:3])} is deprecated and will "
f"be removed in Home Assistant {REQUIRED_NEXT_PYTHON_HA_RELEASE}. "
"Please upgrade Python to "
f"{'.'.join(str(x) for x in REQUIRED_NEXT_PYTHON_VER)} or "
"higher."
f"{'.'.join(str(x) for x in REQUIRED_NEXT_PYTHON_VER[:2])}."
)
_LOGGER.warning(msg)
hass.components.persistent_notification.async_create(