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/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…
x
Reference in New Issue
Block a user