asantaga / wiserHomeAssistantPlatform

Platform and related climate/sensors to support the Drayton Wiser Home Heating System
MIT License
240 stars 44 forks source link

Invalid handler specified when loading integration #537

Open karlinurswick opened 1 day ago

karlinurswick commented 1 day ago

I have had the wiser integration working fine in HomeAssistant working within a VirtualBox machine on my normal use laptop for some time and have now moved to a dedicated machine for home assistant. the new machine is a similar setup, runs windows 10 with HomeAssistant operating in VirtualBox Linux machines as before. I have installed HACS and then subsequently downloaded The Wiser package. When trying t add this via the "Add Integration" Button I get an error - Config flow could not be loaded: {"Invalid handler specified"} and the integration will not load.

When checking the logs, I see this; Logger: homeassistant.config_entries Source: config_entries.py:3249 First occurred: 7:19:29 AM (3 occurrences) Last logged: 7:33:21 AM Error occurred loading flow for integration wiser: No module named 'aioWiserHeatAPI'

I have searched via google for a couple of evenings and cant find any way to resolve this, can anybody offer any advice? Thanks.

msp1974 commented 1 day ago

What version of HA are you running and by what method? HAOS, docker etc?

karlinurswick commented 1 day ago

I am running version 13.2, core 2024.11.3, supervisor 2024.11.4 and believe this is a supervised installation in a Linux virtual (virtualbox) machine. Followed the instructions from here - https://www.home-assistant.io/installation/windows/

msp1974 commented 21 hours ago

OK. If it is not loading the aioWiserHeatAPI library, there will be an error in the logs saying why not. Can we find what that is.

karlinurswick commented 16 hours ago

Not sure how much of this is needed so have added all the log from where the wiser issue starts, thanks for taking the time to look at this. 2024-12-03 17:04:05.492 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration wiser: No module named 'aioWiserHeatAPI'

2024-12-03 17:04:05.493 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3247, in _load_integration

await integration.async_get_platform("config_flow") File "/usr/src/homeassistant/homeassistant/loader.py", line 1104, in async_get_platform

platforms = await self.async_get_platforms((platform_name,))

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1181, in async_get_platforms

import_future.result() File "/usr/src/homeassistant/homeassistant/loader.py", line 1151, in async_get_platforms

await self.hass.async_add_import_executor_job( File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1094, in _load_platforms platform_name: self._load_platform(platform_name)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1268, in _load_platform cache[full_name] = self._import_platform(platform_name)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 1300, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}")

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func return func(*args, **kwargs)

^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1310, in _find_and_load_unlocked File "", line 488, in _call_with_frames_removed File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "/config/custom_components/wiser/init.py", line 23, in

from .coordinator import WiserUpdateCoordinator File "/config/custom_components/wiser/coordinator.py", line 8, in from aioWiserHeatAPI.wiserhub import ( ModuleNotFoundError: No module named 'aioWiserHeatAPI'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 137, in _async_start await gather_with_limited_concurrency(FLOW_INIT_LIMIT, *init_coros)

File "/usr/src/homeassistant/homeassistant/util/async_.py", line 114, in gather_with_limited_concurrency return await gather(

^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/async_.py", line 112, in sem_task return await task

^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1301, in async_init flow, result = await self._async_init(flow_id, handler, context, data)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1326, in _async_init

flow = await self.async_create_flow(handler, context=context, data=data)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1518, in async_create_flow

handler = await _async_get_flow_handler( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3268, in _async_get_flow_handler await _load_integration(hass, domain, hass_config)

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 3254, in _load_integration raise data_entry_flow.UnknownHandler from err homeassistant.data_entry_flow.UnknownHandler

2024-12-03 17:04:50.603 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration wiser: No module named 'aioWiserHeatAPI'

2024-12-03 17:11:58.071 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration wiser: No module named 'aioWiserHeatAPI'