Add icon translations to Random (#109652)

This commit is contained in:
Joost Lekkerkerker 2024-02-04 23:23:10 +01:00 committed by GitHub
parent f18448950c
commit 52d27230bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View file

@ -65,6 +65,8 @@ async def async_setup_entry(
class RandomSensor(SensorEntity):
"""Representation of a Random number sensor."""
_attr_translation_key = "random"
def __init__(self, config: Mapping[str, Any], entry_id: str | None = None) -> None:
"""Initialize the Random sensor."""
self._attr_name = config.get(CONF_NAME)