mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 01:38:02 +00:00
disabled_by can be None when updating devices (#65934)
This commit is contained in:
parent
ccdf182d31
commit
63d3a47599
@ -62,7 +62,7 @@ async def websocket_update_device(hass, connection, msg):
|
||||
msg.pop("type")
|
||||
msg_id = msg.pop("id")
|
||||
|
||||
if "disabled_by" in msg:
|
||||
if msg.get("disabled_by") is not None:
|
||||
msg["disabled_by"] = DeviceEntryDisabler(msg["disabled_by"])
|
||||
|
||||
entry = registry.async_update_device(**msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user