Added support for reachable flag on zwave.mqtt child entities

This commit is contained in:
Fabio Manganiello 2022-11-30 01:01:45 +01:00
parent 2b532c1947
commit 080b21ab70
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -698,7 +698,9 @@ class ZwaveMqttPlugin(MqttPlugin, ZwaveBasePlugin):
)
entities.append(parent)
entity.parent = parent_entities[node_id]
parent = parent_entities[node_id]
entity.parent = parent
entity.reachable = parent.reachable
@staticmethod
def _merge_current_and_target_values(values: Iterable[dict]) -> List[dict]: