Add icon translations to Eufylife BLE (#111530)

This commit is contained in:
Joost Lekkerkerker 2024-02-28 08:52:24 +01:00 committed by GitHub
parent 2cee022bb7
commit 2f38ce2813
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"heart_rate": {
"default": "mdi:heart-pulse"
}
}
}
}

View File

@ -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: