Skip to content

Commit

Permalink
Deprecate Python 3.6 support, 3.8.0 is out (#27680)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored and pvizeli committed Oct 15, 2019
1 parent d8e3255 commit 68a3c97
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions homeassistant/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ async def async_from_config_dict(
stop = time()
_LOGGER.info("Home Assistant initialized in %.2fs", stop - start)

if sys.version_info[:3] < (3, 7, 0):
msg = (
"Python 3.6 support is deprecated and will "
"be removed in the first release after December 15, 2019. Please "
"upgrade Python to 3.7.0 or higher."
)
_LOGGER.warning(msg)
hass.components.persistent_notification.async_create(
msg, "Python version", "python_version"
)

return hass


Expand Down

0 comments on commit 68a3c97

Please sign in to comment.