mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Add icon translations to Geocaching (#111613)
This commit is contained in:
parent
044ace0a6a
commit
497b63216a
21
homeassistant/components/geocaching/icons.json
Normal file
21
homeassistant/components/geocaching/icons.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"find_count": {
|
||||
"default": "mdi:notebook-edit-outline"
|
||||
},
|
||||
"hide_count": {
|
||||
"default": "mdi:eye-off-outline"
|
||||
},
|
||||
"favorite_points": {
|
||||
"default": "mdi:heart-outline"
|
||||
},
|
||||
"souvenir_count": {
|
||||
"default": "mdi:license"
|
||||
},
|
||||
"awarded_favorite_points": {
|
||||
"default": "mdi:heart"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -36,14 +36,12 @@ SENSORS: tuple[GeocachingSensorEntityDescription, ...] = (
|
||||
GeocachingSensorEntityDescription(
|
||||
key="find_count",
|
||||
translation_key="find_count",
|
||||
icon="mdi:notebook-edit-outline",
|
||||
native_unit_of_measurement="caches",
|
||||
value_fn=lambda status: status.user.find_count,
|
||||
),
|
||||
GeocachingSensorEntityDescription(
|
||||
key="hide_count",
|
||||
translation_key="hide_count",
|
||||
icon="mdi:eye-off-outline",
|
||||
native_unit_of_measurement="caches",
|
||||
entity_registry_visible_default=False,
|
||||
value_fn=lambda status: status.user.hide_count,
|
||||
@ -51,7 +49,6 @@ SENSORS: tuple[GeocachingSensorEntityDescription, ...] = (
|
||||
GeocachingSensorEntityDescription(
|
||||
key="favorite_points",
|
||||
translation_key="favorite_points",
|
||||
icon="mdi:heart-outline",
|
||||
native_unit_of_measurement="points",
|
||||
entity_registry_visible_default=False,
|
||||
value_fn=lambda status: status.user.favorite_points,
|
||||
@ -59,14 +56,12 @@ SENSORS: tuple[GeocachingSensorEntityDescription, ...] = (
|
||||
GeocachingSensorEntityDescription(
|
||||
key="souvenir_count",
|
||||
translation_key="souvenir_count",
|
||||
icon="mdi:license",
|
||||
native_unit_of_measurement="souvenirs",
|
||||
value_fn=lambda status: status.user.souvenir_count,
|
||||
),
|
||||
GeocachingSensorEntityDescription(
|
||||
key="awarded_favorite_points",
|
||||
translation_key="awarded_favorite_points",
|
||||
icon="mdi:heart",
|
||||
native_unit_of_measurement="points",
|
||||
entity_registry_visible_default=False,
|
||||
value_fn=lambda status: status.user.awarded_favorite_points,
|
||||
|
Loading…
x
Reference in New Issue
Block a user