From feb36c3efcaef9e788e1c69dc50c3fffe9aa1763 Mon Sep 17 00:00:00 2001 From: Alex Ward Date: Sun, 9 Aug 2020 21:15:25 +0100 Subject: [PATCH] Persist hive light brightness for color change (#38677) when changing the color for a hive light, keep the brightness at the previous level. Co-authored-by: Adam Charlton Co-authored-by: Adam Charlton --- homeassistant/components/hive/light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/hive/light.py b/homeassistant/components/hive/light.py index d6a9d1f400b..7659d43aeba 100644 --- a/homeassistant/components/hive/light.py +++ b/homeassistant/components/hive/light.py @@ -116,7 +116,7 @@ class HiveDeviceLight(HiveEntity, LightEntity): get_new_color = kwargs.get(ATTR_HS_COLOR) hue = int(get_new_color[0]) saturation = int(get_new_color[1]) - new_color = (hue, saturation, 100) + new_color = (hue, saturation, self.brightness) self.session.light.turn_on( self.node_id,