core: old 'Lifx Z' is controllable after 2023.5.2 but lifx strip still has a problem when activated in a scene
The problem
Ref Previous Issue #92456
My old ‘Lifx Z’ is controllable after 2023.5.2 if I go to device and switch on but lifx strip still has a problem when activated in a scene/ automation
What version of Home Assistant Core has the issue?
HA Yellow CM4 8GB
What was the last working version of Home Assistant Core?
Pre 2023.5.0
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Lifx
Link to integration documentation on our website
https://www.home-assistant.io/integrations/lifx/
Diagnostics information
‘NoneType’ object is not subscriptable (ERROR) Home Assistant WebSocket API - message first occurred at 09:14:34 and shows up 13 times
works if you go to the device and toggle the light but not from a scene/automation. works when defining the scene only issue when you activate the scene works turning off though (Different Script) My other new Lifx Z works fine.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.websocket_api.http.connection
Source: components/lifx/light.py:397
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 10:58:47 (1 occurrences)
Last logged: 10:58:47
[547316967280] 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 981, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/scene/init.py", line 114, in _async_activate
await self.async_activate(**kwargs)
File "/usr/src/homeassistant/homeassistant/components/homeassistant/scene.py", line 334, in async_activate
await async_reproduce_state(
File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 115, in async_reproduce_state
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 109, in worker
await platform.async_reproduce_states(
File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 195, in async_reproduce_states
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 182, in _async_reproduce_state
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 798, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 981, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 838, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 582, in async_handle_light_on_service
await light.async_turn_on(filter_turn_on_params(light, params))
File "/usr/src/homeassistant/homeassistant/components/lifx/light.py", line 200, in async_turn_on
await self.set_state({**kwargs, ATTR_POWER: True})
File "/usr/src/homeassistant/homeassistant/components/lifx/light.py", line 247, in set_state
await self.set_color(hsbk, kwargs)
File "/usr/src/homeassistant/homeassistant/components/lifx/light.py", line 397, in set_color
first_zone = color_zones[0]
TypeError: 'NoneType' object is not subscriptable
Additional information
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 27 (10 by maintainers)
That wortked great no error functions correctly in scene and automation
welll done
Sure will try. I maybe able to help have been Software / System Eng 30 years not done much python though.