From 5b7daa9e0cadc720211ee6e8a85b2b148b65de62 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen <balloob@gmail.com> Date: Sun, 3 May 2020 16:21:10 -0700 Subject: [PATCH] Hue: Guard for when there is no brightness (#35151) --- homeassistant/components/hue/light.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/hue/light.py b/homeassistant/components/hue/light.py index 7b5b7e6e804..c9d543dba94 100644 --- a/homeassistant/components/hue/light.py +++ b/homeassistant/components/hue/light.py @@ -259,6 +259,9 @@ class HueLight(LightEntity): else: bri = self.light.state.get("bri") + if bri is None: + return bri + return hue_brightness_to_hass(bri) @property