briancmpbll / home_assistant_custom_envoy

177 stars 77 forks source link

"message":"Invalid handler specified" #107

Closed k-brok closed 1 year ago

k-brok commented 1 year ago

When trying to setup the integration i get the following error: Config-flow kon niet geladen worden: {"message":"Invalid handler specified"}

met onderstaande logboek:

Logger: homeassistant Source: config_entries.py:2052 First occurred: 22:13:13 (1 occurrences) Last logged: 22:13:13

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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 1126, in _find_and_load_unlocked File "", line 241, in _call_with_frames_removed 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/enphase_envoy/init.py", line 18, in from .const import COORDINATOR, DOMAIN, NAME, PLATFORMS, SENSORS, CONF_USE_ENLIGHTEN, CONF_SERIAL, PHASE_SENSORS, DEFAULT_SCAN_INTERVAL File "/config/custom_components/enphase_envoy/const.py", line 40 .TOTAL_INCREASING, ^ SyntaxError: invalid syntax

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

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2045, in _load_integration integration.get_platform("config_flow") File "/usr/src/homeassistant/homeassistant/loader.py", line 842, in get_platform raise ImportError( ImportError: Exception importing custom_components.enphase_envoy.config_flow

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 95, in _async_start await gather_withconcurrency( File "/usr/src/homeassistant/homeassistant/util/async.py", line 185, in gather_withconcurrency return await gather( ^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/util/async.py", line 183, in sem_task return await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 856, in async_init flow, result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 874, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/config_entries.py", line 974, in async_create_flow await _load_integration(self.hass, handler_key, self._hass_config) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2052, in _load_integration raise data_entry_flow.UnknownHandler homeassistant.data_entry_flow.UnknownHandler

catsmanac commented 1 year ago

Is this a new install with HACS or manual, an update from an earlier one? What version of HA?

This section in the log

file "/config/custom_components/enphase_envoy/const.py", line 40
.TOTAL_INCREASING,

Can you see in that file what is in line 40? Latest version has something different in line 40.

afbeelding

k-brok commented 1 year ago

Hi,

It is a new instal with hacs. on a new HA install with docker.

Ha version: 2023.7.2 HACS version: 1.32.1 integration version: v0.0.12

with the file content is: afbeelding

k-brok commented 1 year ago

Ik heb nu de vorige release gebruikt, deze werkt wel.

catsmanac commented 1 year ago

Strange, the picture shows text from what actually is/should be in 2 different files, strings.json and const.py with first part of const.py missing. As of something went wrong during the download/install.