panasonic_cc icon indicating copy to clipboard operation
panasonic_cc copied to clipboard

Cannot add integration "Invalid Handler Specified"

Open kusius opened this issue 1 year ago • 7 comments

Hello, Im trying to add the integration and I receive a popup that says

Config flow could not be loaded: {"message":"Invalid handler specified"}

image

Relevant logs

2024-06-22 11:54:31.008 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.panasonic_cc.config_flow 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/panasonic_cc/init.py", line 16, in from .const import ( File "/config/custom_components/panasonic_cc/const.py", line 63, in ClimateEntityFeature.TURN_OFF | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 783, in getattr raise AttributeError(name) from None AttributeError: TURN_OFF 2024-06-22 11:54:31.045 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration panasonic_cc: Exception importing custom_components.panasonic_cc.config_flow

kusius avatar Jun 22 '24 09:06 kusius

IMG_5036 I get this as well. Cant add 40, 41, 42, 43.

Not getting this issue with previous versions.

jaknil0 avatar Jun 23 '24 05:06 jaknil0

Can you log in to the app with the credentials or are you getting the Multifactor setup step, if you are getting the MF step you need to complete that first.

sockless-coding avatar Jun 23 '24 18:06 sockless-coding

@sockless-coding first of all, thanks for an epic custom component!

I performed the MF step again before attempting to upgrade. Was always able to use the app without issues. I tried downgrading to version 39 and then upgrading again, no luck. Then i upgraded HA to latest stable from 2023 something. After upgrade to latest HA i was able to add the integration without issues.

jaknil0 avatar Jun 23 '24 19:06 jaknil0

I experience the same error and I have never entered my credentials before in the app, its the first time using it for me, so i suspect the MFA issue cant be the thing causing it...

timovp avatar Jul 06 '24 19:07 timovp

My issue was solved by upgrading home-assistant itself. 👍

timovp avatar Jul 06 '24 20:07 timovp

@timovp Thanks. Will try to update again and see. Hoping to close the issue if it works.

You updated to the latest HA? What version?

kusius avatar Jul 08 '24 06:07 kusius

@kusius I think the integration needs at least 2024.4 to work, I'm not entirely sure when they introduced all the new state constants.

sockless-coding avatar Jul 08 '24 07:07 sockless-coding

Hi there! This issue has been marked as stale due to inactivity. If you believe this is still relevant, please let us know. Otherwise, it will be closed soon.

github-actions[bot] avatar Sep 23 '24 00:09 github-actions[bot]

This issue has been automatically closed due to inactivity. If you still need help, feel free to reopen or create a new issue. Thank you!

github-actions[bot] avatar Sep 30 '24 00:09 github-actions[bot]