Add icon translations to Lastfm (#111855)
* Add icon translations to Lastfm * Add icon translations to Lastfmpull/111868/head
parent
6e6d3e7565
commit
36a5c71dc7
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"lastfm": {
|
||||||
|
"default": "mdi:radio-fm"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -43,7 +43,7 @@ class LastFmSensor(CoordinatorEntity[LastFMDataUpdateCoordinator], SensorEntity)
|
||||||
"""A class for the Last.fm account."""
|
"""A class for the Last.fm account."""
|
||||||
|
|
||||||
_attr_attribution = "Data provided by Last.fm"
|
_attr_attribution = "Data provided by Last.fm"
|
||||||
_attr_icon = "mdi:radio-fm"
|
_attr_translation_key = "lastfm"
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = True
|
||||||
_attr_name = None
|
_attr_name = None
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
'attribution': 'Data provided by Last.fm',
|
'attribution': 'Data provided by Last.fm',
|
||||||
'entity_picture': 'image',
|
'entity_picture': 'image',
|
||||||
'friendly_name': 'LastFM testaccount1',
|
'friendly_name': 'LastFM testaccount1',
|
||||||
'icon': 'mdi:radio-fm',
|
|
||||||
'last_played': 'artist - title',
|
'last_played': 'artist - title',
|
||||||
'play_count': 1,
|
'play_count': 1,
|
||||||
'top_played': 'artist - title',
|
'top_played': 'artist - title',
|
||||||
|
@ -23,7 +22,6 @@
|
||||||
'attribution': 'Data provided by Last.fm',
|
'attribution': 'Data provided by Last.fm',
|
||||||
'entity_picture': 'image',
|
'entity_picture': 'image',
|
||||||
'friendly_name': 'LastFM testaccount1',
|
'friendly_name': 'LastFM testaccount1',
|
||||||
'icon': 'mdi:radio-fm',
|
|
||||||
'last_played': None,
|
'last_played': None,
|
||||||
'play_count': 0,
|
'play_count': 0,
|
||||||
'top_played': None,
|
'top_played': None,
|
||||||
|
|
Loading…
Reference in New Issue