mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Cleanup unnecessary mired attributes in esphome (#132833)
* Cleanup unnecessary mired attributes in esphome * Adjust
This commit is contained in:
parent
0a786394f5
commit
7014317e9e
@ -414,11 +414,8 @@ class EsphomeLight(EsphomeEntity[LightInfo, LightState], LightEntity):
|
||||
|
||||
self._attr_supported_color_modes = supported
|
||||
self._attr_effect_list = static_info.effects
|
||||
self._attr_min_mireds = round(static_info.min_mireds)
|
||||
self._attr_max_mireds = round(static_info.max_mireds)
|
||||
if ColorMode.COLOR_TEMP in supported:
|
||||
self._attr_min_color_temp_kelvin = _mired_to_kelvin(static_info.max_mireds)
|
||||
self._attr_max_color_temp_kelvin = _mired_to_kelvin(static_info.min_mireds)
|
||||
self._attr_min_color_temp_kelvin = _mired_to_kelvin(static_info.max_mireds)
|
||||
self._attr_max_color_temp_kelvin = _mired_to_kelvin(static_info.min_mireds)
|
||||
|
||||
|
||||
async_setup_entry = partial(
|
||||
|
Loading…
x
Reference in New Issue
Block a user