Sian-Lee-SA / Home-Assistant-Switch-Manager

Switch manager is a centralised component to handle button pushes for your wireless switches. This includes anything passed through the event bus. The component relies on switch blueprints which is easily made to allow GUI configuration of your switches and their button pushes. This helps remove clutter from the automations.
Other
206 stars 79 forks source link

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

Closed fredanaman closed 6 months ago

fredanaman commented 6 months ago

Hi,

Hope you can help? When i update to Home Assistant 2023.12.3 (and 4), switch manager stops working. I have tried uninstalling and reinstalling but get the msg in subject.

Thanks Fred

Sian-Lee-SA commented 6 months ago

Please provide log of the error...

fredanaman commented 6 months ago

Hi

these are the entries i see:

Logger: homeassistant.config_entries Source: config_entries.py:2087 First occurred: 12:35:15 (1 occurrences) Last logged: 12:35:15

Error occurred loading flow for integration switch_manager: cannot import name '_format_config_error' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py)


Logger: homeassistant.setup Source: setup.py:251 First occurred: 12:34:29 (1 occurrences) Last logged: 12:34:29

Setup failed for custom integration 'switch_manager': Unable to import component: cannot import name '_format_config_error' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component component = integration.get_component() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 822, 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/switch_manager - Copy/init.py", line 19, in from homeassistant.config import _format_config_error ImportError: cannot import name '_format_config_error' from 'homeassistant.config' (/usr/src/homeassistant/homeassistant/config.py)

Thanks Fred

Sian-Lee-SA commented 6 months ago

Closing as duplicate https://github.com/Sian-Lee-SA/Home-Assistant-Switch-Manager/issues/185