forked from home-assistant/core
Fix typo in min/max mired(s) entity class attribute (#51921)
This commit is contained in:
@@ -77,8 +77,8 @@ class ElgatoLight(LightEntity):
|
|||||||
min_mired = 153
|
min_mired = 153
|
||||||
max_mired = 285
|
max_mired = 285
|
||||||
|
|
||||||
self._attr_max_mired = max_mired
|
self._attr_max_mireds = max_mired
|
||||||
self._attr_min_mired = min_mired
|
self._attr_min_mireds = min_mired
|
||||||
self._attr_name = info.display_name or info.product_name
|
self._attr_name = info.display_name or info.product_name
|
||||||
self._attr_supported_color_modes = supported_color_modes
|
self._attr_supported_color_modes = supported_color_modes
|
||||||
self._attr_unique_id = info.serial_number
|
self._attr_unique_id = info.serial_number
|
||||||
|
@@ -647,8 +647,8 @@ class LightEntity(ToggleEntity):
|
|||||||
_attr_effect_list: list[str] | None = None
|
_attr_effect_list: list[str] | None = None
|
||||||
_attr_effect: str | None = None
|
_attr_effect: str | None = None
|
||||||
_attr_hs_color: tuple[float, float] | None = None
|
_attr_hs_color: tuple[float, float] | None = None
|
||||||
_attr_max_mired: int = 500
|
_attr_max_mireds: int = 500
|
||||||
_attr_min_mired: int = 153
|
_attr_min_mireds: int = 153
|
||||||
_attr_rgb_color: tuple[int, int, int] | None = None
|
_attr_rgb_color: tuple[int, int, int] | None = None
|
||||||
_attr_rgbw_color: tuple[int, 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
|
_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."""
|
"""Return the coldest color_temp that this light supports."""
|
||||||
# Default to the Philips Hue value that HA has always assumed
|
# Default to the Philips Hue value that HA has always assumed
|
||||||
# https://developers.meethue.com/documentation/core-concepts
|
# https://developers.meethue.com/documentation/core-concepts
|
||||||
return self._attr_min_mired
|
return self._attr_min_mireds
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def max_mireds(self) -> int:
|
def max_mireds(self) -> int:
|
||||||
"""Return the warmest color_temp that this light supports."""
|
"""Return the warmest color_temp that this light supports."""
|
||||||
# Default to the Philips Hue value that HA has always assumed
|
# Default to the Philips Hue value that HA has always assumed
|
||||||
# https://developers.meethue.com/documentation/core-concepts
|
# https://developers.meethue.com/documentation/core-concepts
|
||||||
return self._attr_max_mired
|
return self._attr_max_mireds
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def white_value(self) -> int | None:
|
def white_value(self) -> int | None:
|
||||||
|
Reference in New Issue
Block a user