mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add icon translations to Lastfm (#111855)
* Add icon translations to Lastfm * Add icon translations to Lastfm
This commit is contained in:
parent
6e6d3e7565
commit
36a5c71dc7
9
homeassistant/components/lastfm/icons.json
Normal file
9
homeassistant/components/lastfm/icons.json
Normal file
@ -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."""
|
||||
|
||||
_attr_attribution = "Data provided by Last.fm"
|
||||
_attr_icon = "mdi:radio-fm"
|
||||
_attr_translation_key = "lastfm"
|
||||
_attr_has_entity_name = True
|
||||
_attr_name = None
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user