Remove reference to self.min/max_mireds in mqtt light (#133055)

This commit is contained in:
epenet 2024-12-12 16:49:50 +01:00 committed by GitHub
parent 2ce2765e67
commit 0b18e51a13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -486,10 +486,8 @@ class MqttLight(MqttEntity, LightEntity, RestoreEntity):
def _converter( def _converter(
r: int, g: int, b: int, cw: int, ww: int r: int, g: int, b: int, cw: int, ww: int
) -> tuple[int, int, 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( 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( rgbww = self._rgbx_received(