From c65d1206337275a84d885da6665cebda8eb6af29 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 16 Jun 2021 09:58:21 +0200 Subject: [PATCH] Fix typo in min/max mired(s) entity class attribute (#51921) --- homeassistant/components/elgato/light.py | 4 ++-- homeassistant/components/light/__init__.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/elgato/light.py b/homeassistant/components/elgato/light.py index 46060fe23fb..7f7e432c5f0 100644 --- a/homeassistant/components/elgato/light.py +++ b/homeassistant/components/elgato/light.py @@ -77,8 +77,8 @@ class ElgatoLight(LightEntity): min_mired = 153 max_mired = 285 - self._attr_max_mired = max_mired - self._attr_min_mired = min_mired + self._attr_max_mireds = max_mired + self._attr_min_mireds = min_mired self._attr_name = info.display_name or info.product_name self._attr_supported_color_modes = supported_color_modes self._attr_unique_id = info.serial_number diff --git a/homeassistant/components/light/__init__.py b/homeassistant/components/light/__init__.py index ce86ae4e257..e92999f4d21 100644 --- a/homeassistant/components/light/__init__.py +++ b/homeassistant/components/light/__init__.py @@ -647,8 +647,8 @@ class LightEntity(ToggleEntity): _attr_effect_list: list[str] | None = None _attr_effect: str | None = None _attr_hs_color: tuple[float, float] | None = None - _attr_max_mired: int = 500 - _attr_min_mired: int = 153 + _attr_max_mireds: int = 500 + _attr_min_mireds: int = 153 _attr_rgb_color: tuple[int, int, int] | None = None _attr_rgbw_color: tuple[int, int, int, int] | None = None _attr_rgbww_color: tuple[int, int, int, int, int] | None = None @@ -748,14 +748,14 @@ class LightEntity(ToggleEntity): """Return the coldest color_temp that this light supports.""" # Default to the Philips Hue value that HA has always assumed # https://developers.meethue.com/documentation/core-concepts - return self._attr_min_mired + return self._attr_min_mireds @property def max_mireds(self) -> int: """Return the warmest color_temp that this light supports.""" # Default to the Philips Hue value that HA has always assumed # https://developers.meethue.com/documentation/core-concepts - return self._attr_max_mired + return self._attr_max_mireds @property def white_value(self) -> int | None: