Correct zwave_js value changed callback signature (#45110)
parent
938d8be0c8
commit
3537a7c3d5
|
@ -1091,7 +1091,6 @@ omit =
|
|||
homeassistant/components/supla/*
|
||||
homeassistant/components/zwave/util.py
|
||||
homeassistant/components/zwave_js/discovery.py
|
||||
homeassistant/components/zwave_js/entity.py
|
||||
homeassistant/components/zwave_js/light.py
|
||||
homeassistant/components/zwave_js/sensor.py
|
||||
|
||||
|
|
|
@ -83,14 +83,11 @@ class ZWaveBaseEntity(Entity):
|
|||
return self.client.connected and bool(self.info.node.ready)
|
||||
|
||||
@callback
|
||||
def _value_changed(self, event_data: Union[dict, ZwaveValue]) -> None:
|
||||
def _value_changed(self, event_data: dict) -> None:
|
||||
"""Call when (one of) our watched values changes.
|
||||
|
||||
Should not be overridden by subclasses.
|
||||
"""
|
||||
if isinstance(event_data, ZwaveValue):
|
||||
value_id = event_data.value_id
|
||||
else:
|
||||
value_id = event_data["value"].value_id
|
||||
|
||||
if value_id not in self.watched_value_ids:
|
||||
|
|
Loading…
Reference in New Issue