diff --git a/homeassistant/components/abode/alarm_control_panel.py b/homeassistant/components/abode/alarm_control_panel.py index d01373954466a323435e98c582eb241c61fa93c2..4671b71059d9c42b914a15ccfa93f5481875b569 100644 --- a/homeassistant/components/abode/alarm_control_panel.py +++ b/homeassistant/components/abode/alarm_control_panel.py @@ -17,8 +17,6 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from . import AbodeDevice, AbodeSystem from .const import DOMAIN -ICON = "mdi:security" - async def async_setup_entry( hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback @@ -33,7 +31,6 @@ async def async_setup_entry( class AbodeAlarm(AbodeDevice, alarm.AlarmControlPanelEntity): """An alarm_control_panel implementation for Abode.""" - _attr_icon = ICON _attr_name = None _attr_code_arm_required = False _attr_supported_features = ( diff --git a/homeassistant/components/abode/icons.json b/homeassistant/components/abode/icons.json new file mode 100644 index 0000000000000000000000000000000000000000..89cee03181886afba0fa9d15b032f688f5720221 --- /dev/null +++ b/homeassistant/components/abode/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "switch": { + "automation": { + "default": "mdi:robot" + } + } + } +} diff --git a/homeassistant/components/abode/switch.py b/homeassistant/components/abode/switch.py index 14bdf4e0caf78408104a2ce8e8e9e78fe5100928..8443a16ef8f069663de93a47af5a65a8b7af56ea 100644 --- a/homeassistant/components/abode/switch.py +++ b/homeassistant/components/abode/switch.py @@ -17,8 +17,6 @@ from .const import DOMAIN DEVICE_TYPES = [CONST.TYPE_SWITCH, CONST.TYPE_VALVE] -ICON = "mdi:robot" - async def async_setup_entry( hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback @@ -63,7 +61,7 @@ class AbodeSwitch(AbodeDevice, SwitchEntity): class AbodeAutomationSwitch(AbodeAutomation, SwitchEntity): """A switch implementation for Abode automations.""" - _attr_icon = ICON + _attr_translation_key = "automation" async def async_added_to_hass(self) -> None: """Set up trigger automation service."""