mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 16:57:19 +00:00
Add icon translations to Skybell (#112225)
This commit is contained in:
parent
ddcb38289e
commit
79fcedef15
27
homeassistant/components/skybell/icons.json
Normal file
27
homeassistant/components/skybell/icons.json
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"chime_level": {
|
||||||
|
"default": "mdi:bell-ring"
|
||||||
|
},
|
||||||
|
"last_button_event": {
|
||||||
|
"default": "mdi:clock"
|
||||||
|
},
|
||||||
|
"last_motion_event": {
|
||||||
|
"default": "mdi:clock"
|
||||||
|
},
|
||||||
|
"last_check_in": {
|
||||||
|
"default": "mdi:clock"
|
||||||
|
},
|
||||||
|
"motion_threshold": {
|
||||||
|
"default": "mdi:walk"
|
||||||
|
},
|
||||||
|
"wifi_ssid": {
|
||||||
|
"default": "mdi:wifi-settings"
|
||||||
|
},
|
||||||
|
"wifi_status": {
|
||||||
|
"default": "mdi:wifi-strength-3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -40,27 +40,23 @@ SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
|
|||||||
SkybellSensorEntityDescription(
|
SkybellSensorEntityDescription(
|
||||||
key="chime_level",
|
key="chime_level",
|
||||||
translation_key="chime_level",
|
translation_key="chime_level",
|
||||||
icon="mdi:bell-ring",
|
|
||||||
value_fn=lambda device: device.outdoor_chime_level,
|
value_fn=lambda device: device.outdoor_chime_level,
|
||||||
),
|
),
|
||||||
SkybellSensorEntityDescription(
|
SkybellSensorEntityDescription(
|
||||||
key="last_button_event",
|
key="last_button_event",
|
||||||
translation_key="last_button_event",
|
translation_key="last_button_event",
|
||||||
icon="mdi:clock",
|
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
value_fn=lambda device: device.latest("button").get(CONST.CREATED_AT),
|
value_fn=lambda device: device.latest("button").get(CONST.CREATED_AT),
|
||||||
),
|
),
|
||||||
SkybellSensorEntityDescription(
|
SkybellSensorEntityDescription(
|
||||||
key="last_motion_event",
|
key="last_motion_event",
|
||||||
translation_key="last_motion_event",
|
translation_key="last_motion_event",
|
||||||
icon="mdi:clock",
|
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
value_fn=lambda device: device.latest("motion").get(CONST.CREATED_AT),
|
value_fn=lambda device: device.latest("motion").get(CONST.CREATED_AT),
|
||||||
),
|
),
|
||||||
SkybellSensorEntityDescription(
|
SkybellSensorEntityDescription(
|
||||||
key=CONST.ATTR_LAST_CHECK_IN,
|
key=CONST.ATTR_LAST_CHECK_IN,
|
||||||
translation_key="last_check_in",
|
translation_key="last_check_in",
|
||||||
icon="mdi:clock",
|
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
@ -69,7 +65,6 @@ SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
|
|||||||
SkybellSensorEntityDescription(
|
SkybellSensorEntityDescription(
|
||||||
key="motion_threshold",
|
key="motion_threshold",
|
||||||
translation_key="motion_threshold",
|
translation_key="motion_threshold",
|
||||||
icon="mdi:walk",
|
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.motion_threshold,
|
value_fn=lambda device: device.motion_threshold,
|
||||||
@ -84,7 +79,6 @@ SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
|
|||||||
SkybellSensorEntityDescription(
|
SkybellSensorEntityDescription(
|
||||||
key=CONST.ATTR_WIFI_SSID,
|
key=CONST.ATTR_WIFI_SSID,
|
||||||
translation_key="wifi_ssid",
|
translation_key="wifi_ssid",
|
||||||
icon="mdi:wifi-settings",
|
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.wifi_ssid,
|
value_fn=lambda device: device.wifi_ssid,
|
||||||
@ -92,7 +86,6 @@ SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
|
|||||||
SkybellSensorEntityDescription(
|
SkybellSensorEntityDescription(
|
||||||
key=CONST.ATTR_WIFI_STATUS,
|
key=CONST.ATTR_WIFI_STATUS,
|
||||||
translation_key="wifi_status",
|
translation_key="wifi_status",
|
||||||
icon="mdi:wifi-strength-3",
|
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
value_fn=lambda device: device.wifi_status,
|
value_fn=lambda device: device.wifi_status,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user