Add icon translations to Switcher kis (#112296)
This commit is contained in:
parent
2e65952eae
commit
33c1e7d45d
3 changed files with 30 additions and 6 deletions
|
@ -48,7 +48,6 @@ THERMOSTAT_BUTTONS = [
|
||||||
SwitcherThermostatButtonEntityDescription(
|
SwitcherThermostatButtonEntityDescription(
|
||||||
key="assume_on",
|
key="assume_on",
|
||||||
translation_key="assume_on",
|
translation_key="assume_on",
|
||||||
icon="mdi:fan",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
press_fn=lambda api, remote: api.control_breeze_device(
|
press_fn=lambda api, remote: api.control_breeze_device(
|
||||||
remote, state=DeviceState.ON, update_state=True
|
remote, state=DeviceState.ON, update_state=True
|
||||||
|
@ -58,7 +57,6 @@ THERMOSTAT_BUTTONS = [
|
||||||
SwitcherThermostatButtonEntityDescription(
|
SwitcherThermostatButtonEntityDescription(
|
||||||
key="assume_off",
|
key="assume_off",
|
||||||
translation_key="assume_off",
|
translation_key="assume_off",
|
||||||
icon="mdi:fan-off",
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
press_fn=lambda api, remote: api.control_breeze_device(
|
press_fn=lambda api, remote: api.control_breeze_device(
|
||||||
remote, state=DeviceState.OFF, update_state=True
|
remote, state=DeviceState.OFF, update_state=True
|
||||||
|
@ -68,7 +66,6 @@ THERMOSTAT_BUTTONS = [
|
||||||
SwitcherThermostatButtonEntityDescription(
|
SwitcherThermostatButtonEntityDescription(
|
||||||
key="vertical_swing_on",
|
key="vertical_swing_on",
|
||||||
translation_key="vertical_swing_on",
|
translation_key="vertical_swing_on",
|
||||||
icon="mdi:autorenew",
|
|
||||||
press_fn=lambda api, remote: api.control_breeze_device(
|
press_fn=lambda api, remote: api.control_breeze_device(
|
||||||
remote, swing=ThermostatSwing.ON
|
remote, swing=ThermostatSwing.ON
|
||||||
),
|
),
|
||||||
|
@ -77,7 +74,6 @@ THERMOSTAT_BUTTONS = [
|
||||||
SwitcherThermostatButtonEntityDescription(
|
SwitcherThermostatButtonEntityDescription(
|
||||||
key="vertical_swing_off",
|
key="vertical_swing_off",
|
||||||
translation_key="vertical_swing_off",
|
translation_key="vertical_swing_off",
|
||||||
icon="mdi:autorenew-off",
|
|
||||||
press_fn=lambda api, remote: api.control_breeze_device(
|
press_fn=lambda api, remote: api.control_breeze_device(
|
||||||
remote, swing=ThermostatSwing.OFF
|
remote, swing=ThermostatSwing.OFF
|
||||||
),
|
),
|
||||||
|
|
30
homeassistant/components/switcher_kis/icons.json
Normal file
30
homeassistant/components/switcher_kis/icons.json
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"button": {
|
||||||
|
"assume_on": {
|
||||||
|
"default": "mdi:fan"
|
||||||
|
},
|
||||||
|
"assume_off": {
|
||||||
|
"default": "mdi:fan-off"
|
||||||
|
},
|
||||||
|
"vertical_swing_on": {
|
||||||
|
"default": "mdi:autorenew"
|
||||||
|
},
|
||||||
|
"vertical_swing_off": {
|
||||||
|
"default": "mdi:autorenew-off"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sensor": {
|
||||||
|
"remaining_time": {
|
||||||
|
"default": "mdi:av-timer"
|
||||||
|
},
|
||||||
|
"auto_shutdown": {
|
||||||
|
"default": "mdi:progress-clock"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_auto_off": "mdi:progress-clock",
|
||||||
|
"turn_on_with_timer": "mdi:timer"
|
||||||
|
}
|
||||||
|
}
|
|
@ -40,12 +40,10 @@ TIME_SENSORS: list[SensorEntityDescription] = [
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="remaining_time",
|
key="remaining_time",
|
||||||
translation_key="remaining_time",
|
translation_key="remaining_time",
|
||||||
icon="mdi:av-timer",
|
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="auto_off_set",
|
key="auto_off_set",
|
||||||
translation_key="auto_shutdown",
|
translation_key="auto_shutdown",
|
||||||
icon="mdi:progress-clock",
|
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue