span-hacs icon indicating copy to clipboard operation
span-hacs copied to clipboard

Switches for Circuit and Essential Selection - No Entities

Open tylas13 opened this issue 2 years ago • 0 comments

Seeing an issue with the Integration not populating entities for the user controlled switches and the Essential/Non-Essential Selection.

Initially they stopped responding, but after re-install of the Integration (and after re-initializing door lock-out from Span) the switches and selection are not populated at all. All sensors happen to be working however.

Error in Log: Error while setting up span_panel platform for select Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/span_panel/select.py", line 92, in async_setup_entry if span_panel.circuits.is_user_controllable(id): File "/config/custom_components/span_panel/span_panel.py", line 308, in is_user_controllable return self.json_data[id][CIRCUITS_IS_USER_CONTROLLABLE] KeyError: 'is_user_controllable'

Error while setting up span_panel platform for switch Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/span_panel/switch.py", line 94, in async_setup_entry if span_panel.circuits.is_user_controllable(id): File "/config/custom_components/span_panel/span_panel.py", line 308, in is_user_controllable return self.json_data[id][CIRCUITS_IS_USER_CONTROLLABLE] KeyError: 'is_user_controllable'

tylas13 avatar Jan 31 '23 17:01 tylas13