Add more test coverage for ESPHome lights (#95415)

This commit is contained in:
J. Nick Koston 2023-06-28 01:40:21 -05:00 committed by GitHub
parent b53b162d05
commit 72806bfaf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 817 additions and 11 deletions

View file

@ -362,12 +362,6 @@ class EsphomeLight(EsphomeEntity[LightInfo, LightState], LightEntity):
round(state.warm_white * 255),
)
@property
@esphome_state_property
def color_temp(self) -> int:
"""Return the CT color value in mireds."""
return round(self._state.color_temperature)
@property
@esphome_state_property
def color_temp_kelvin(self) -> int: