-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"'EmberStatus' object is not subscriptable" error when turning on fan light #69893
"'EmberStatus' object is not subscriptable" error when turning on fan light #69893
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( websocket_api documentation |
zha documentation |
Hey there @dmulcahey, @Adminiuga, mind taking a look at this issue as it has been labeled with an integration ( |
Are you using light service to turn on/off the fan? |
@Adminiuga No, this uses the light service to turn on/off the fan light. The fan device has two entities of interest: a light and a fan. The fan entity continues to work as expected. |
Yep, i forgot it has the light entity. Can you enable debug logging and post the snippet where it calls the light service? Need to see what response comes back. |
And was it working with 2022.4.1? |
@Adminiuga I can verify it was working in 2022.3. I can't remember but I may have skipped 2022.4.1 and accidently mislabeled this bug as working in that release, so I have updated the bug to reflect this. It is worth noting also that the light does turn on and off despite the error. Log: |
I'm having the same issue with the same device. For me it broke with the 2022.4.0 update. |
Looks like zigpy returns the radio library-internal I think wrapping the status in a ZCL |
There's a quirk for KoF which disables the expect_reply for some of the commands. |
I agree, fixing it in the quirk seems more correct.
Zigpy already does this 😄 |
I have two of these fans and just started seeing this issue recently, probably just a couple releases ago it was working fine. So some update definitely broke this. Light actually still turns on and off and I see status indicator, it just causes an exception in the Lovelace UI and logs every time. |
The problem
When turning on or off a fan light the following exception occurs...
'EmberStatus' object is not subscriptable
Logger: homeassistant.components.websocket_api.http.connection
Source: components/zha/light.py:343
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:57:22 PM (14 occurrences)
Last logged: 10:29:01 PM
What version of Home Assistant Core has the issue?
core-2022.4.2
What was the last working version of Home Assistant Core?
core-2022.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
zha
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha
Diagnostics information
Device info
HDC52EastwindFan
by King Of Fans, Inc.
Connected via Zigbee Coordinator
Firmware: 0x0000000f
Zigbee info
IEEE: REDACTED
Nwk: REDACTED
Device Type: EndDevice
LQI: 255
RSSI: -55
Last Seen: 2022-04-11T22:43:26
Power Source: Mains
Quirk: zhaquirks.kof.kof_mr101z.CeilingFan
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-04-11 21:57:29 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546966825232] 'EmberStatus' object is not subscriptable Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1634, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1671, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 677, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 955, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 714, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 504, in async_handle_light_on_service await light.async_turn_on(**filter_turn_on_params(light, params)) File "/usr/src/homeassistant/homeassistant/components/zha/light.py", line 258, in async_turn_on if isinstance(result, Exception) or result[1] is not Status.SUCCESS: TypeError: 'EmberStatus' object is not subscriptable
The text was updated successfully, but these errors were encountered: