mirror of
https://github.com/home-assistant/core.git
synced 2025-08-13 17:45:19 +02:00
disabled_by can be None when updating devices (#65934)
This commit is contained in:
committed by
Paulus Schoutsen
parent
0dbe9b7cf4
commit
ad3b2f02b4
@@ -62,7 +62,7 @@ async def websocket_update_device(hass, connection, msg):
|
|||||||
msg.pop("type")
|
msg.pop("type")
|
||||||
msg_id = msg.pop("id")
|
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"])
|
msg["disabled_by"] = DeviceEntryDisabler(msg["disabled_by"])
|
||||||
|
|
||||||
entry = registry.async_update_device(**msg)
|
entry = registry.async_update_device(**msg)
|
||||||
|
Reference in New Issue
Block a user