From 0d8390b9df6b6b784297ad7e1b88f9b65f7b439c Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen 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 b808dd0594d..6157a7fde23 100644 --- a/homeassistant/components/hue/light.py +++ b/homeassistant/components/hue/light.py @@ -259,6 +259,9 @@ class HueLight(Light): else: bri = self.light.state.get("bri") + if bri is None: + return bri + return hue_brightness_to_hass(bri) @property