Add icon translations to Switcher kis (#112296)

This commit is contained in:
Joost Lekkerkerker 2024-03-05 11:34:18 +01:00 committed by GitHub
parent 2e65952eae
commit 33c1e7d45d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 30 additions and 6 deletions

View file

@ -48,7 +48,6 @@ THERMOSTAT_BUTTONS = [
SwitcherThermostatButtonEntityDescription(
key="assume_on",
translation_key="assume_on",
icon="mdi:fan",
entity_category=EntityCategory.CONFIG,
press_fn=lambda api, remote: api.control_breeze_device(
remote, state=DeviceState.ON, update_state=True
@ -58,7 +57,6 @@ THERMOSTAT_BUTTONS = [
SwitcherThermostatButtonEntityDescription(
key="assume_off",
translation_key="assume_off",
icon="mdi:fan-off",
entity_category=EntityCategory.CONFIG,
press_fn=lambda api, remote: api.control_breeze_device(
remote, state=DeviceState.OFF, update_state=True
@ -68,7 +66,6 @@ THERMOSTAT_BUTTONS = [
SwitcherThermostatButtonEntityDescription(
key="vertical_swing_on",
translation_key="vertical_swing_on",
icon="mdi:autorenew",
press_fn=lambda api, remote: api.control_breeze_device(
remote, swing=ThermostatSwing.ON
),
@ -77,7 +74,6 @@ THERMOSTAT_BUTTONS = [
SwitcherThermostatButtonEntityDescription(
key="vertical_swing_off",
translation_key="vertical_swing_off",
icon="mdi:autorenew-off",
press_fn=lambda api, remote: api.control_breeze_device(
remote, swing=ThermostatSwing.OFF
),