From 46df3a6a98f5996b109203b5372bb5b7d446b1a4 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 1 May 2022 01:58:05 +0200 Subject: [PATCH] FIX: `reachable` is an attribute of `state` --- platypush/plugins/light/hue/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/light/hue/__init__.py b/platypush/plugins/light/hue/__init__.py index a62a02f40..02f9a58ae 100644 --- a/platypush/plugins/light/hue/__init__.py +++ b/platypush/plugins/light/hue/__init__.py @@ -1068,7 +1068,7 @@ class LightHuePlugin(LightPlugin): hue=entity.get('state', {}).get('hue'), temperature=entity.get('state', {}).get('ct'), colormode=entity.get('colormode'), - reachable=entity.get('reachable'), + reachable=entity.get('state', {}).get('reachable'), x=entity['state']['xy'][0] if entity.get('state', {}).get('xy') else None,