mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add icon translations to Kaleidescape (#111850)
This commit is contained in:
parent
0d85e316a2
commit
87632dcb6a
54
homeassistant/components/kaleidescape/icons.json
Normal file
54
homeassistant/components/kaleidescape/icons.json
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"media_location": {
|
||||||
|
"default": "mdi:monitor"
|
||||||
|
},
|
||||||
|
"play_status": {
|
||||||
|
"default": "mdi:monitor"
|
||||||
|
},
|
||||||
|
"play_speed": {
|
||||||
|
"default": "mdi:monitor"
|
||||||
|
},
|
||||||
|
"video_mode": {
|
||||||
|
"default": "mdi:monitor-screenshot"
|
||||||
|
},
|
||||||
|
"video_color_eotf": {
|
||||||
|
"default": "mdi:monitor-eye"
|
||||||
|
},
|
||||||
|
"video_color_space": {
|
||||||
|
"default": "mdi:monitor-eye"
|
||||||
|
},
|
||||||
|
"video_color_depth": {
|
||||||
|
"default": "mdi:monitor-eye"
|
||||||
|
},
|
||||||
|
"video_color_sampling": {
|
||||||
|
"default": "mdi:monitor-eye"
|
||||||
|
},
|
||||||
|
"screen_mask_ratio": {
|
||||||
|
"default": "mdi:monitor-screenshot"
|
||||||
|
},
|
||||||
|
"screen_mask_top_trim_rel": {
|
||||||
|
"default": "mdi:monitor-screenshot"
|
||||||
|
},
|
||||||
|
"screen_mask_bottom_trim_rel": {
|
||||||
|
"default": "mdi:monitor-screenshot"
|
||||||
|
},
|
||||||
|
"screen_mask_conservative_ratio": {
|
||||||
|
"default": "mdi:monitor-screenshot"
|
||||||
|
},
|
||||||
|
"screen_mask_top_mask_abs": {
|
||||||
|
"default": "mdi:monitor-screenshot"
|
||||||
|
},
|
||||||
|
"screen_mask_bottom_mask_abs": {
|
||||||
|
"default": "mdi:monitor-screenshot"
|
||||||
|
},
|
||||||
|
"cinemascape_mask": {
|
||||||
|
"default": "mdi:monitor-star"
|
||||||
|
},
|
||||||
|
"cinemascape_mode": {
|
||||||
|
"default": "mdi:monitor-star"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -40,67 +40,57 @@ SENSOR_TYPES: tuple[KaleidescapeSensorEntityDescription, ...] = (
|
|||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="media_location",
|
key="media_location",
|
||||||
translation_key="media_location",
|
translation_key="media_location",
|
||||||
icon="mdi:monitor",
|
|
||||||
value_fn=lambda device: device.automation.movie_location,
|
value_fn=lambda device: device.automation.movie_location,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="play_status",
|
key="play_status",
|
||||||
translation_key="play_status",
|
translation_key="play_status",
|
||||||
icon="mdi:monitor",
|
|
||||||
value_fn=lambda device: device.movie.play_status,
|
value_fn=lambda device: device.movie.play_status,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="play_speed",
|
key="play_speed",
|
||||||
translation_key="play_speed",
|
translation_key="play_speed",
|
||||||
icon="mdi:monitor",
|
|
||||||
value_fn=lambda device: device.movie.play_speed,
|
value_fn=lambda device: device.movie.play_speed,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="video_mode",
|
key="video_mode",
|
||||||
translation_key="video_mode",
|
translation_key="video_mode",
|
||||||
icon="mdi:monitor-screenshot",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.video_mode,
|
value_fn=lambda device: device.automation.video_mode,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="video_color_eotf",
|
key="video_color_eotf",
|
||||||
translation_key="video_color_eotf",
|
translation_key="video_color_eotf",
|
||||||
icon="mdi:monitor-eye",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.video_color_eotf,
|
value_fn=lambda device: device.automation.video_color_eotf,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="video_color_space",
|
key="video_color_space",
|
||||||
translation_key="video_color_space",
|
translation_key="video_color_space",
|
||||||
icon="mdi:monitor-eye",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.video_color_space,
|
value_fn=lambda device: device.automation.video_color_space,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="video_color_depth",
|
key="video_color_depth",
|
||||||
translation_key="video_color_depth",
|
translation_key="video_color_depth",
|
||||||
icon="mdi:monitor-eye",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.video_color_depth,
|
value_fn=lambda device: device.automation.video_color_depth,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="video_color_sampling",
|
key="video_color_sampling",
|
||||||
translation_key="video_color_sampling",
|
translation_key="video_color_sampling",
|
||||||
icon="mdi:monitor-eye",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.video_color_sampling,
|
value_fn=lambda device: device.automation.video_color_sampling,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="screen_mask_ratio",
|
key="screen_mask_ratio",
|
||||||
translation_key="screen_mask_ratio",
|
translation_key="screen_mask_ratio",
|
||||||
icon="mdi:monitor-screenshot",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.screen_mask_ratio,
|
value_fn=lambda device: device.automation.screen_mask_ratio,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="screen_mask_top_trim_rel",
|
key="screen_mask_top_trim_rel",
|
||||||
translation_key="screen_mask_top_trim_rel",
|
translation_key="screen_mask_top_trim_rel",
|
||||||
icon="mdi:monitor-screenshot",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
value_fn=lambda device: device.automation.screen_mask_top_trim_rel / 10.0,
|
value_fn=lambda device: device.automation.screen_mask_top_trim_rel / 10.0,
|
||||||
@ -108,7 +98,6 @@ SENSOR_TYPES: tuple[KaleidescapeSensorEntityDescription, ...] = (
|
|||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="screen_mask_bottom_trim_rel",
|
key="screen_mask_bottom_trim_rel",
|
||||||
translation_key="screen_mask_bottom_trim_rel",
|
translation_key="screen_mask_bottom_trim_rel",
|
||||||
icon="mdi:monitor-screenshot",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
value_fn=lambda device: device.automation.screen_mask_bottom_trim_rel / 10.0,
|
value_fn=lambda device: device.automation.screen_mask_bottom_trim_rel / 10.0,
|
||||||
@ -116,14 +105,12 @@ SENSOR_TYPES: tuple[KaleidescapeSensorEntityDescription, ...] = (
|
|||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="screen_mask_conservative_ratio",
|
key="screen_mask_conservative_ratio",
|
||||||
translation_key="screen_mask_conservative_ratio",
|
translation_key="screen_mask_conservative_ratio",
|
||||||
icon="mdi:monitor-screenshot",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.screen_mask_conservative_ratio,
|
value_fn=lambda device: device.automation.screen_mask_conservative_ratio,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="screen_mask_top_mask_abs",
|
key="screen_mask_top_mask_abs",
|
||||||
translation_key="screen_mask_top_mask_abs",
|
translation_key="screen_mask_top_mask_abs",
|
||||||
icon="mdi:monitor-screenshot",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
value_fn=lambda device: device.automation.screen_mask_top_mask_abs / 10.0,
|
value_fn=lambda device: device.automation.screen_mask_top_mask_abs / 10.0,
|
||||||
@ -131,7 +118,6 @@ SENSOR_TYPES: tuple[KaleidescapeSensorEntityDescription, ...] = (
|
|||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="screen_mask_bottom_mask_abs",
|
key="screen_mask_bottom_mask_abs",
|
||||||
translation_key="screen_mask_bottom_mask_abs",
|
translation_key="screen_mask_bottom_mask_abs",
|
||||||
icon="mdi:monitor-screenshot",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
native_unit_of_measurement=PERCENTAGE,
|
native_unit_of_measurement=PERCENTAGE,
|
||||||
value_fn=lambda device: device.automation.screen_mask_bottom_mask_abs / 10.0,
|
value_fn=lambda device: device.automation.screen_mask_bottom_mask_abs / 10.0,
|
||||||
@ -139,14 +125,12 @@ SENSOR_TYPES: tuple[KaleidescapeSensorEntityDescription, ...] = (
|
|||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="cinemascape_mask",
|
key="cinemascape_mask",
|
||||||
translation_key="cinemascape_mask",
|
translation_key="cinemascape_mask",
|
||||||
icon="mdi:monitor-star",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.cinemascape_mask,
|
value_fn=lambda device: device.automation.cinemascape_mask,
|
||||||
),
|
),
|
||||||
KaleidescapeSensorEntityDescription(
|
KaleidescapeSensorEntityDescription(
|
||||||
key="cinemascape_mode",
|
key="cinemascape_mode",
|
||||||
translation_key="cinemascape_mode",
|
translation_key="cinemascape_mode",
|
||||||
icon="mdi:monitor-star",
|
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.automation.cinemascape_mode,
|
value_fn=lambda device: device.automation.cinemascape_mode,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user