Core: Tado component suddenly broken

Created on 1 May 2020  路  15Comments  路  Source: home-assistant/core

The problem


Since updating to home assistant 0.108 the tado component in my installation has suddenly stopped working resulting in the errors below.

Environment

  • Home Assistant Core release with the issue: 0.108 and 0.109.2
  • Last working Home Assistant Core release (if known): 0.107.6
  • Operating environment (Home Assistant/Supervised/Docker/venv): Raspbian GNU/Linux 10 (buster), raspberrypi4
  • Integration causing this issue: Tado
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/tado/

Problem-relevant configuration.yaml

tado:
  username: !secret email
  password: !secret tado

Traceback/Error logs

Setup failed for tado: Unable to import component: No module named 'PyTado.const'

Error occurred loading configuration flow for integration tado: No module named 'PyTado.const'

Additional information

All 15 comments

Hey there @michaelarnauts, @bdraco, mind taking a look at this issue as its been labeled with a integration (tado) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

It looks like you have an old version of the python-tado package installed.

Do you have a custom tado installed that may need to be removed?

Don't know. Will check it now!

Do you know perhaps, if this is the case, how to remove it?

I don't think that I am using a custom tado. After rebooting I get the following errors:

2020-05-01 21:20:30 ERROR (MainThread) [homeassistant.setup] Setup failed for tado: Unable to import component: No module named 'PyTado.const' 2020-05-01 21:20:30 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration tado: No module named 'PyTado.const' File "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 21, in <module> File "/usr/src/homeassistant/homeassistant/components/tado/const.py", line 3, in <module> from PyTado.const import ( ModuleNotFoundError: No module named 'PyTado.const'

Would you try manually installing python-tado in your home assistant environment

pip install python-tado==0.8.1

I don't know if it's a Tado issue or a climate component in general. But there are no working modes. I hope nobody gets angry that I'm writing here.
1
2

Would you try manually installing python-tado in your home assistant environment

pip install python-tado==0.8.1

I am trying but I don't know how to get in the right environment to do this. I am using Raspbian on a raspberry pi 4 with an external SDD. Can connect using ssh to pi@ip_address. But then what? Sorry for being such a noob ;-) And thank you for your help!!

I think I bricked my install. Getting this error and not booting at all:

2020-05-01 22:06:09 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_create_flow integration.get_platform("config_flow") File "/usr/src/homeassistant/homeassistant/loader.py", line 279, in get_platform f"{self.pkg_path}.{platform_name}" 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 953, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed 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 "/usr/src/homeassistant/homeassistant/components/tado/__init__.py", line 21, in <module> from .const import ( File "/usr/src/homeassistant/homeassistant/components/tado/const.py", line 3, in <module> from PyTado.const import (

Would you try manually installing python-tado in your home assistant environment

pip install python-tado==0.8.1

Ok I managed to get into my docker container and to execute the command!
This was the result:

Requirement already satisfied: python-tado==0.8.1 in /usr/local/lib/python3.7/site-packages (0.8.1) Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from python-tado==0.8.1) (2.23.0) Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (3.0.4) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (1.25.9) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2020.4.5.1) Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2.9)

Did not work.

Its possible you have an old version installed as well
pip install --upgrade python-tado==0.8.1

Please try the above to force uninstall and reinstall

Thank you for your help! The same problem remains.

Requirement already up-to-date: python-tado==0.8.1 in /usr/local/lib/python3.7/site-packages (0.8.1) Requirement already satisfied, skipping upgrade: requests in /usr/local/lib/python3.7/site-packages (from python-tado==0.8.1) (2.23.0) Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (1.25.9) Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2.9) Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (3.0.4) Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->python-tado==0.8.1) (2020.4.5.1)

It worked perfectly. I did not tweak anything and after pushing an update of home-assistent it just stopped working.

I'm not sure what is going on with your instance. It doesn't seem like something I'm going to be able to diagnose as the problem appears to be outsite of tado and a problem with the python install stack.

It might be best to do a backup, reinstall, and then restore your configuration.

Thank you! reinstalling worked.

Was this page helpful?
0 / 5 - 0 ratings