mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Correct zwave_js value changed callback signature (#45110)
This commit is contained in:
parent
938d8be0c8
commit
3537a7c3d5
@ -1091,7 +1091,6 @@ omit =
|
|||||||
homeassistant/components/supla/*
|
homeassistant/components/supla/*
|
||||||
homeassistant/components/zwave/util.py
|
homeassistant/components/zwave/util.py
|
||||||
homeassistant/components/zwave_js/discovery.py
|
homeassistant/components/zwave_js/discovery.py
|
||||||
homeassistant/components/zwave_js/entity.py
|
|
||||||
homeassistant/components/zwave_js/light.py
|
homeassistant/components/zwave_js/light.py
|
||||||
homeassistant/components/zwave_js/sensor.py
|
homeassistant/components/zwave_js/sensor.py
|
||||||
|
|
||||||
|
@ -83,15 +83,12 @@ class ZWaveBaseEntity(Entity):
|
|||||||
return self.client.connected and bool(self.info.node.ready)
|
return self.client.connected and bool(self.info.node.ready)
|
||||||
|
|
||||||
@callback
|
@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.
|
"""Call when (one of) our watched values changes.
|
||||||
|
|
||||||
Should not be overridden by subclasses.
|
Should not be overridden by subclasses.
|
||||||
"""
|
"""
|
||||||
if isinstance(event_data, ZwaveValue):
|
value_id = event_data["value"].value_id
|
||||||
value_id = event_data.value_id
|
|
||||||
else:
|
|
||||||
value_id = event_data["value"].value_id
|
|
||||||
|
|
||||||
if value_id not in self.watched_value_ids:
|
if value_id not in self.watched_value_ids:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user