From 080b21ab70847624d4b115da882828125c843def Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 30 Nov 2022 01:01:45 +0100 Subject: [PATCH] Added support for reachable flag on zwave.mqtt child entities --- platypush/plugins/zwave/mqtt/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/zwave/mqtt/__init__.py b/platypush/plugins/zwave/mqtt/__init__.py index 60a39b6d3..068bfd643 100644 --- a/platypush/plugins/zwave/mqtt/__init__.py +++ b/platypush/plugins/zwave/mqtt/__init__.py @@ -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]: