mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Add icon translations to Eufylife BLE (#111530)
This commit is contained in:
parent
2cee022bb7
commit
2f38ce2813
9
homeassistant/components/eufylife_ble/icons.json
Normal file
9
homeassistant/components/eufylife_ble/icons.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"heart_rate": {
|
||||||
|
"default": "mdi:heart-pulse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -159,7 +159,6 @@ class EufyLifeHeartRateSensorEntity(RestoreSensor, EufyLifeSensorEntity):
|
|||||||
"""Representation of an EufyLife heart rate sensor."""
|
"""Representation of an EufyLife heart rate sensor."""
|
||||||
|
|
||||||
_attr_translation_key = "heart_rate"
|
_attr_translation_key = "heart_rate"
|
||||||
_attr_icon = "mdi:heart-pulse"
|
|
||||||
_attr_native_unit_of_measurement = "bpm"
|
_attr_native_unit_of_measurement = "bpm"
|
||||||
|
|
||||||
def __init__(self, data: EufyLifeData) -> None:
|
def __init__(self, data: EufyLifeData) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user