Python upgrade

please help me! I am getting crazy!

 Main PID: 4242 (hass)
    Tasks: 32 (limit: 3534)
   Memory: 73.5M
   CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
           └─4242 /home/homeassistant/.pyenv/versions/home-assistant/bin/python3 /home/homeassistant/.pyenv/versions/home-assistant/bin/hass -c /home/homeassistant/.homeassistant

lug 22 00:36:06 raspberry hass[4242]:   File "/home/homeassistant/.pyenv/versions/3.7.3/lib/python3.7/concurrent/futures/thread.py", line 57, in run
lug 22 00:36:06 raspberry hass[4242]:     result = self.fn(*self.args, **self.kwargs)
lug 22 00:36:06 raspberry hass[4242]:   File "/home/homeassistant/.pyenv/versions/home-assistant/lib/python3.7/site-packages/homekit/controller/ip_implementation.py", line 73, in list_accessories_and_characteristics
lug 22 00:36:06 raspberry hass[4242]:     self.session = IpSession(self.pairing_data)
lug 22 00:36:06 raspberry hass[4242]:   File "/home/homeassistant/.pyenv/versions/home-assistant/lib/python3.7/site-packages/homekit/controller/ip_implementation.py", line 416, in __init__
lug 22 00:36:06 raspberry hass[4242]:     c2a_key, a2c_key = get_session_keys(conn, pairing_data, write_fun)
lug 22 00:36:06 raspberry hass[4242]:   File "/home/homeassistant/.pyenv/versions/home-assistant/lib/python3.7/site-packages/homekit/protocol/__init__.py", line 358, in get_session_keys
lug 22 00:36:06 raspberry hass[4242]:     raise InvalidSignatureError('step 3')
lug 22 00:36:06 raspberry hass[4242]: homekit.exceptions.InvalidSignatureError: step 3
lug 22 00:36:07 raspberry hass[4242]: 2019-07-22 00:36:07 ERROR (SyncWorker_5) [homeassistant.components.broadlink.switch] Failed to connect to device

Works perfetcly, thank you!

Thanks for posting these steps. Worked for me :slight_smile:

I am having BIG problems installing 0.101.3 release of HA over the 0.100.3.
What i get are tons of errors regarding python3 version.
I have installed 3.7.2 release of python3 as HA informations says:

37

But the log errors often tell me this:

2019-11-09 12:49:46 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: unknown error
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/setup.py", line 138, in _async_setup_component
    component = integration.get_component()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 223, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/__init__.py", line 50, in <module>
    from . import config_flow, discovery, server  # noqa pylint: disable=unused-import
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mqtt/server.py", line 7, in <module>
    from hbmqtt.broker import Broker, BrokerException
  File "/srv/homeassistant/lib/python3.7/site-packages/hbmqtt/broker.py", line 6, in <module>
    import websockets
  File "/srv/homeassistant/lib/python3.7/site-packages/websockets/__init__.py", line 3, in <module>
    from .client import *
  File "/srv/homeassistant/lib/python3.7/site-packages/websockets/client.py", line 12, in <module>
    from .protocol import CONNECTING, OPEN, WebSocketCommonProtocol
  File "/srv/homeassistant/lib/python3.7/site-packages/websockets/protocol.py", line 17, in <module>
    from .compatibility import asyncio_ensure_future
  File "/srv/homeassistant/lib/python3.7/site-packages/websockets/compatibility.py", line 9
    asyncio_ensure_future = asyncio.async           # Python < 3.5

From this log it seems i need to upgrade python3 from 3.5, but i already have 3.7.2.
Any help? In this moment i cannot upgrade to 0.101.3 !!!