From 1802ecfc245f402993b3e81e3dd3a3f7365371c1 Mon Sep 17 00:00:00 2001 From: Yevhenii Vaskivskyi Date: Thu, 8 Sep 2022 08:49:36 +0200 Subject: [PATCH] Fix `len` method typo for Osram light (#78008) * Fix `len` method typo for Osram light * Fix typo in line 395 --- homeassistant/components/osramlightify/light.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/osramlightify/light.py b/homeassistant/components/osramlightify/light.py index 9fc54d0352c..e1b204115e6 100644 --- a/homeassistant/components/osramlightify/light.py +++ b/homeassistant/components/osramlightify/light.py @@ -373,7 +373,7 @@ class Luminary(LightEntity): self._max_mireds = color_util.color_temperature_kelvin_to_mired( self._luminary.min_temp() or DEFAULT_KELVIN ) - if len(self._attr_supported_color_modes == 1): + if len(self._attr_supported_color_modes) == 1: # The light supports only a single color mode self._attr_color_mode = list(self._attr_supported_color_modes)[0] @@ -392,7 +392,7 @@ class Luminary(LightEntity): if ColorMode.HS in self._attr_supported_color_modes: self._rgb_color = self._luminary.rgb() - if len(self._attr_supported_color_modes > 1): + if len(self._attr_supported_color_modes) > 1: # The light supports hs + color temp, determine which one it is if self._rgb_color == (0, 0, 0): self._attr_color_mode = ColorMode.COLOR_TEMP