Pytradfri not working from 0.71 upgrade

Hi All,
Just upgraded to 0.71 and it appears to of stopped my Ikea Tradfri connection. Anyone else experience same and able to fix? (HomeAssistant running in python virtual environment on Raspberry Pi 3)

2018-06-11 12:25:46 ERROR (MainThread) [homeassistant.components.tradfri] Tradfri setup failed.
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 92, in _get_response
    r = yield from pr.response
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/srv/homeassistant/lib/python3.5/site-packages/aiocoap/protocol.py", line 816, in _run_outer
    yield from cls._run(app_request, response, weak_observation, protocol, log, exchange_monitor_factory)
  File "/srv/homeassistant/lib/python3.5/site-packages/aiocoap/protocol.py", line 865, in _run
    blockresponse = yield from blockrequest.response
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
aiocoap.error.RequestTimedOut

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/tradfri.py", line 149, in _setup_gateway
    gateway_info_result = await api(gateway.get_gateway_info())
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 152, in request
    result = yield from self._execute(api_commands)
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 142, in _execute
    _, res = yield from self._get_response(msg)
  File "/srv/homeassistant/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 98, in _get_response
    raise RequestTimeout('Request timed out.', e)
pytradfri.error.RequestTimeout: ('Request timed out.', RequestTimedOut())

Many thanks
Edit, rolling back to 70.1 and all working again

While 71 was running did you try resetting the tradfri gateway? Looks like a connection issue possibly.

1 Like

No i did not try that, I rolled back to previous version and all was working.
pip3 install homeassistant==0.70.1

Just upgraded again to 0.71 (still not restarting the tradfri gateway) and all working.
I cannot explain it as to my knowledge nothing changed inbetween.

Thank you for your suggestion, i will remember that in future.