Skip to content

Commit

Permalink
Use icon translations
Browse files Browse the repository at this point in the history
  • Loading branch information
IceBotYT committed Aug 19, 2024
1 parent 3170eda commit aa40947
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions homeassistant/components/nice_go/icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entity": {
"switch": {
"vacation_mode": {
"default": "mdi:beach"
}
}
}
}
1 change: 0 additions & 1 deletion homeassistant/components/nice_go/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ class NiceGOSwitchEntity(NiceGOEntity, SwitchEntity):
"""Representation of a Nice G.O. switch."""

_attr_device_class = SwitchDeviceClass.SWITCH
_attr_icon = "mdi:beach"
_attr_translation_key = "vacation_mode"

@property
Expand Down

0 comments on commit aa40947

Please sign in to comment.