mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Remove reference to self.min/max_mireds in mqtt light (#133055)
This commit is contained in:
parent
2ce2765e67
commit
0b18e51a13
@ -486,10 +486,8 @@ class MqttLight(MqttEntity, LightEntity, RestoreEntity):
|
||||
def _converter(
|
||||
r: int, g: int, b: int, cw: int, ww: int
|
||||
) -> tuple[int, int, int]:
|
||||
min_kelvin = color_util.color_temperature_mired_to_kelvin(self.max_mireds)
|
||||
max_kelvin = color_util.color_temperature_mired_to_kelvin(self.min_mireds)
|
||||
return color_util.color_rgbww_to_rgb(
|
||||
r, g, b, cw, ww, min_kelvin, max_kelvin
|
||||
r, g, b, cw, ww, self.min_color_temp_kelvin, self.max_color_temp_kelvin
|
||||
)
|
||||
|
||||
rgbww = self._rgbx_received(
|
||||
|
Loading…
x
Reference in New Issue
Block a user