You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding an entry to the integration, signing in with Cync credentials, and entering the two-factor code, I can select which devices I want to add to Home Assistant. This list is correctly populated with the light bulbs I have already on my network. This integration used to work for me, but it broke when I updated my Home Assistant to 2023.10.
But after I press submit, Home Assistant says the integration "Failed to Set Up"
Here are the logs related to this integration:
Logger: aiohttp.server
Source: custom_components/cync_lights/config_flow.py:263
Integration: Cync Lights ([documentation](https://github.com/nikshriv/cync_lights))
First occurred: 4:28:07 PM (2 occurrences)
Last logged: 4:28:08 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 234, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 298, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 394, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/cync_lights/config_flow.py", line 186, in async_step_init
return await self.async_step_select_switches()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/cync_lights/config_flow.py", line 263, in async_step_select_switches
): cv.multi_select({room : f'{room_info["name"]} ({room_info["home_name"]})' for room,room_info in self.entry.data["cync_config"]["rooms"].items() if not self.data["data"]["cync_config"]["rooms"][room]['isSubgroup']}),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/cync_lights/config_flow.py", line 263, in <dictcomp>
): cv.multi_select({room : f'{room_info["name"]} ({room_info["home_name"]})' for room,room_info in self.entry.data["cync_config"]["rooms"].items() if not self.data["data"]["cync_config"]["rooms"][room]['isSubgroup']}),
~~~~~~~~~^^^^^^^^
KeyError: 'data'
Followed by
Source: custom_components/cync_lights/__init__.py:19
Integration: Cync Lights ([documentation](https://github.com/nikshriv/cync_lights))
First occurred: 11:07:51 AM (134 occurrences)
Last logged: 4:29:48 PM
Error setting up entry cync_lights_brandon.m.daniels@gmail.com for cync_lights
Error setting up entry cync_lights for cync_lights
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/cync_lights/__init__.py", line 19, in async_setup_entry
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'
Followed by:
Source: custom_components/cync_lights/cync_hub.py:65
Integration: Cync Lights ([documentation](https://github.com/nikshriv/cync_lights))
First occurred: 3:44:31 PM (1097 occurrences)
Last logged: 4:33:44 PM
LostConnection:
Connection to Cync server reset, restarting in 15 seconds
IndexError: list index out of range
Thank you for your work on this integration. I hope I am able to use it again.
The text was updated successfully, but these errors were encountered:
After adding an entry to the integration, signing in with Cync credentials, and entering the two-factor code, I can select which devices I want to add to Home Assistant. This list is correctly populated with the light bulbs I have already on my network. This integration used to work for me, but it broke when I updated my Home Assistant to 2023.10.
But after I press submit, Home Assistant says the integration "Failed to Set Up"
![Screenshot 2023-11-18 at 4 33 19 PM](https://private-user-images.githubusercontent.com/62359227/284028029-63a18725-71f6-450a-bc5f-4f506e877e5f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNjQ4MzUsIm5iZiI6MTcyMTI2NDUzNSwicGF0aCI6Ii82MjM1OTIyNy8yODQwMjgwMjktNjNhMTg3MjUtNzFmNi00NTBhLWJjNWYtNGY1MDZlODc3ZTVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE4VDAxMDIxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0MjVmZmY4MTAwYzk5YmI2YmI5MGJhNzc2ZmE1MGZjY2ZiMjMxMTIyMWVlNTYxNzcxMmM5ZWE3NjM5OWYyZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Fu4aSMBo3v-sTr4Abw4LrJxtuwIow3bnBePCWtinUCM)
Here are the logs related to this integration:
Followed by
Followed by:
Thank you for your work on this integration. I hope I am able to use it again.
The text was updated successfully, but these errors were encountered: