Fix zwave_js diagnostics zwave value endpoint lookup (#70646)

This commit is contained in:
Martin Hjelmare 2022-04-25 11:01:07 +02:00 committed by GitHub
parent 5b9e3a5e7b
commit 54fed9ee7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ def redact_value_of_zwave_value(zwave_value: ValueDataType) -> ValueDataType:
zwave_value_id = ZwaveValueID(
property_=zwave_value["property"],
command_class=CommandClass(zwave_value["commandClass"]),
endpoint=zwave_value["endpoint"],
endpoint=zwave_value.get("endpoint"),
property_key=zwave_value.get("propertyKey"),
)
if all(