mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add icon translations to Ridwell (#112210)
This commit is contained in:
parent
4cfca55099
commit
35599046ac
@ -49,8 +49,8 @@ async def async_setup_entry(
|
||||
class RidwellCalendar(RidwellEntity, CalendarEntity):
|
||||
"""Define a Ridwell calendar."""
|
||||
|
||||
_attr_icon = "mdi:delete-empty"
|
||||
_attr_name = None
|
||||
_attr_translation_key = "calendar"
|
||||
|
||||
def __init__(
|
||||
self, coordinator: RidwellDataUpdateCoordinator, account: RidwellAccount
|
||||
|
14
homeassistant/components/ridwell/icons.json
Normal file
14
homeassistant/components/ridwell/icons.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"entity": {
|
||||
"calendar": {
|
||||
"calendar": {
|
||||
"default": "mdi:delete-empty"
|
||||
}
|
||||
},
|
||||
"switch": {
|
||||
"opt_in": {
|
||||
"default": "mdi:calendar-check"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -19,7 +19,6 @@ from .entity import RidwellEntity
|
||||
SWITCH_DESCRIPTION = SwitchEntityDescription(
|
||||
key="opt_in",
|
||||
translation_key="opt_in",
|
||||
icon="mdi:calendar-check",
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user