From 4fc3ece694f2449df67a7974436e7bccbc3b2a88 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 24 Aug 2021 10:59:20 +1200 Subject: [PATCH] Add another enum for the broken brightness light color_mode --- aioesphomeapi/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aioesphomeapi/model.py b/aioesphomeapi/model.py index 7d38493..61f04d9 100644 --- a/aioesphomeapi/model.py +++ b/aioesphomeapi/model.py @@ -211,7 +211,8 @@ class FanState(EntityState): class LightColorMode(APIIntEnum): UNKNOWN = 0 ON_OFF = 1 - BRIGHTNESS = 2 + BROKEN_BRIGHTNESS = 2 # Remove this in a future update. https://github.com/esphome/esphome/pull/2186 + BRIGHTNESS = WHITE = 7 COLOR_TEMPERATURE = 11 COLD_WARM_WHITE = 19