mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 00:27: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(
|
||||
key="chime_level",
|
||||
translation_key="chime_level",
|
||||
icon="mdi:bell-ring",
|
||||
value_fn=lambda device: device.outdoor_chime_level,
|
||||
),
|
||||
SkybellSensorEntityDescription(
|
||||
key="last_button_event",
|
||||
translation_key="last_button_event",
|
||||
icon="mdi:clock",
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
value_fn=lambda device: device.latest("button").get(CONST.CREATED_AT),
|
||||
),
|
||||
SkybellSensorEntityDescription(
|
||||
key="last_motion_event",
|
||||
translation_key="last_motion_event",
|
||||
icon="mdi:clock",
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
value_fn=lambda device: device.latest("motion").get(CONST.CREATED_AT),
|
||||
),
|
||||
SkybellSensorEntityDescription(
|
||||
key=CONST.ATTR_LAST_CHECK_IN,
|
||||
translation_key="last_check_in",
|
||||
icon="mdi:clock",
|
||||
entity_registry_enabled_default=False,
|
||||
device_class=SensorDeviceClass.TIMESTAMP,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
@ -69,7 +65,6 @@ SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
|
||||
SkybellSensorEntityDescription(
|
||||
key="motion_threshold",
|
||||
translation_key="motion_threshold",
|
||||
icon="mdi:walk",
|
||||
entity_registry_enabled_default=False,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda device: device.motion_threshold,
|
||||
@ -84,7 +79,6 @@ SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
|
||||
SkybellSensorEntityDescription(
|
||||
key=CONST.ATTR_WIFI_SSID,
|
||||
translation_key="wifi_ssid",
|
||||
icon="mdi:wifi-settings",
|
||||
entity_registry_enabled_default=False,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda device: device.wifi_ssid,
|
||||
@ -92,7 +86,6 @@ SENSOR_TYPES: tuple[SkybellSensorEntityDescription, ...] = (
|
||||
SkybellSensorEntityDescription(
|
||||
key=CONST.ATTR_WIFI_STATUS,
|
||||
translation_key="wifi_status",
|
||||
icon="mdi:wifi-strength-3",
|
||||
entity_registry_enabled_default=False,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda device: device.wifi_status,
|
||||
|
Loading…
x
Reference in New Issue
Block a user