mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Add icon translations to Philips TV (#112179)
This commit is contained in:
parent
511810a4f5
commit
6aae44dbb3
@ -29,13 +29,11 @@ DESCRIPTIONS = (
|
||||
PhilipsTVBinarySensorEntityDescription(
|
||||
key="recording_ongoing",
|
||||
translation_key="recording_ongoing",
|
||||
icon="mdi:record-rec",
|
||||
recording_value="RECORDING_ONGOING",
|
||||
),
|
||||
PhilipsTVBinarySensorEntityDescription(
|
||||
key="recording_new",
|
||||
translation_key="recording_new",
|
||||
icon="mdi:new-box",
|
||||
recording_value="RECORDING_NEW",
|
||||
),
|
||||
)
|
||||
|
25
homeassistant/components/philips_js/icons.json
Normal file
25
homeassistant/components/philips_js/icons.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"entity": {
|
||||
"binary_sensor": {
|
||||
"recording_ongoing": {
|
||||
"default": "mdi:record-rec"
|
||||
},
|
||||
"recording_new": {
|
||||
"default": "mdi:new-box"
|
||||
}
|
||||
},
|
||||
"light": {
|
||||
"ambilight": {
|
||||
"default": "mdi:television-ambient-light"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
"screen_state": {
|
||||
"default": "mdi:television-shimmer"
|
||||
},
|
||||
"ambilight_hue": {
|
||||
"default": "mdi:television-ambient-light"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -153,7 +153,6 @@ class PhilipsTVLightEntity(PhilipsJsEntity, LightEntity):
|
||||
self._attr_supported_color_modes = {ColorMode.HS, ColorMode.ONOFF}
|
||||
self._attr_supported_features = LightEntityFeature.EFFECT
|
||||
self._attr_unique_id = coordinator.unique_id
|
||||
self._attr_icon = "mdi:television-ambient-light"
|
||||
|
||||
self._update_from_coordinator()
|
||||
|
||||
|
@ -45,7 +45,6 @@ class PhilipsTVScreenSwitch(PhilipsJsEntity, SwitchEntity):
|
||||
|
||||
super().__init__(coordinator)
|
||||
|
||||
self._attr_icon = "mdi:television-shimmer"
|
||||
self._attr_unique_id = f"{coordinator.unique_id}_screenstate"
|
||||
|
||||
@property
|
||||
@ -84,7 +83,6 @@ class PhilipsTVAmbilightHueSwitch(PhilipsJsEntity, SwitchEntity):
|
||||
|
||||
super().__init__(coordinator)
|
||||
|
||||
self._attr_icon = "mdi:television-ambient-light"
|
||||
self._attr_unique_id = f"{coordinator.unique_id}_ambi_hue"
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user