Fix typo in min/max mired(s) entity class attribute (#51921)
This commit is contained in:
parent
37d3a4dd53
commit
c65d120633
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue