Skip to content
Snippets Groups Projects
Unverified Commit a0d54e8f authored by Joost Lekkerkerker's avatar Joost Lekkerkerker Committed by GitHub
Browse files

Use device class naming for SimpliSafe (#96093)

parent 7f184e05
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,7 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanelEntity):
AlarmControlPanelEntityFeature.ARM_HOME
| AlarmControlPanelEntityFeature.ARM_AWAY
)
_attr_name = None
def __init__(self, simplisafe: SimpliSafe, system: SystemType) -> None:
"""Initialize the SimpliSafe alarm."""
......
......@@ -111,7 +111,6 @@ class BatteryBinarySensor(SimpliSafeEntity, BinarySensorEntity):
"""Initialize."""
super().__init__(simplisafe, system, device=device)
self._attr_name = "Battery"
self._attr_unique_id = f"{super().unique_id}-battery"
self._device: DeviceV3
......
......@@ -44,7 +44,7 @@ async def _async_clear_notifications(system: System) -> None:
BUTTON_DESCRIPTIONS = (
SimpliSafeButtonDescription(
key=BUTTON_KIND_CLEAR_NOTIFICATIONS,
name="Clear notifications",
translation_key=BUTTON_KIND_CLEAR_NOTIFICATIONS,
push_action=_async_clear_notifications,
),
)
......
......@@ -29,5 +29,12 @@
}
}
}
},
"entity": {
"button": {
"clear_notifications": {
"name": "Clear notifications"
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment