plmilord / Hass.io-custom-component-spaclient

Home Assistant integration - Spa Client
48 stars 16 forks source link

Unable to import component: No module named 'homeassistant.util.temperature' #41

Closed enkrypt3d closed 11 months ago

enkrypt3d commented 11 months ago

Getting this error after upgrading to the latest version 2023.11

Logger: homeassistant.setup Source: setup.py:215 First occurred: 11:27:51 AM (1 occurrences) Last logged: 11:27:51 AM

Setup failed for custom integration spaclient: Unable to import component: No module named 'homeassistant.util.temperature' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 215, in _async_setup_component component = integration.get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 816, in get_component ComponentProtocol, importlib.import_module(self.pkg_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/config/custom_components/spaclient/init.py", line 19, in from .spaclient import spaclient File "/config/custom_components/spaclient/spaclient.py", line 9, in from homeassistant.util.temperature import convert as convert_temperature ModuleNotFoundError: No module named 'homeassistant.util.temperature'

plmilord commented 11 months ago

What version of Spa Client are you using? If you just updated to v2.8, I suggest you delete the /spaclient folder inside the /custom_components folder. Restart Home Assistant, then reinstall v2.8.

What is your system infos? Mine:

Core 2023.11.0 Supervisor 2023.10.1 Operating System 11.1 Interface utilisateur 20231030.1

enkrypt3d commented 11 months ago

I have it installed via the main integration in HA. There is nothing in the custom_components folder for the spa client.

Core 2023.11.0 Supervisor 2023.10.1 Operating System 11.1

image I'm unable to delete it - it does nothing when I click delete.......

On Thu, Nov 2, 2023 at 8:31 PM Pierre-Luc Milord @.***> wrote:

What version of Spa Client are you using? If you just updated to v2.8, I suggest you delete the /spaclient folder inside the /custom_components folder. Restart Home Assistant, then reinstall v2.8.

What is your system infos? Mine:

Core 2023.11.0 Supervisor 2023.10.1 Operating System 11.1 Interface utilisateur 20231030.1

— Reply to this email directly, view it on GitHub https://github.com/plmilord/Hass.io-custom-component-spaclient/issues/41#issuecomment-1791741904, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWHLHRROVD7UDUKJPYKLCU3YCQ3NNAVCNFSM6AAAAAA63VIDUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJRG42DCOJQGQ . You are receiving this because you authored the thread.Message ID: @.*** com>

plmilord commented 11 months ago

If there is nothing in your custom components folder, I suggest you copy the /spaclient to /custom_components. Restart Home Assistant and try uninstalling it again. This should work… then restart HA and reinstall Spa Client.

enkrypt3d commented 11 months ago

After banging my head on the wall it's working again. no idea why the upgrade to v11 caused this. thanks!