Add icon translations to Lastfm (#111855)

* Add icon translations to Lastfm

* Add icon translations to Lastfm
pull/111868/head
Joost Lekkerkerker 2024-02-29 17:01:09 +01:00 committed by GitHub
parent 6e6d3e7565
commit 36a5c71dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,9 @@
{
"entity": {
"sensor": {
"lastfm": {
"default": "mdi:radio-fm"
}
}
}
}

View File

@ -43,7 +43,7 @@ class LastFmSensor(CoordinatorEntity[LastFMDataUpdateCoordinator], SensorEntity)
"""A class for the Last.fm account."""
_attr_attribution = "Data provided by Last.fm"
_attr_icon = "mdi:radio-fm"
_attr_translation_key = "lastfm"
_attr_has_entity_name = True
_attr_name = None

View File

@ -5,7 +5,6 @@
'attribution': 'Data provided by Last.fm',
'entity_picture': 'image',
'friendly_name': 'LastFM testaccount1',
'icon': 'mdi:radio-fm',
'last_played': 'artist - title',
'play_count': 1,
'top_played': 'artist - title',
@ -23,7 +22,6 @@
'attribution': 'Data provided by Last.fm',
'entity_picture': 'image',
'friendly_name': 'LastFM testaccount1',
'icon': 'mdi:radio-fm',
'last_played': None,
'play_count': 0,
'top_played': None,