Add entity translations to Bosch SHC (#98750)

This commit is contained in:
Joost Lekkerkerker 2023-08-22 09:26:49 +02:00 committed by GitHub
parent 2e0038b981
commit a0a06f16a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 46 additions and 14 deletions

View file

@ -24,6 +24,7 @@ class SHCBaseEntity(Entity):
"""Base representation of a SHC entity."""
_attr_should_poll = False
_attr_has_entity_name = True
def __init__(
self, device: SHCDevice | SHCIntrusionSystem, parent_id: str, entry_id: str
@ -31,7 +32,6 @@ class SHCBaseEntity(Entity):
"""Initialize the generic SHC device."""
self._device = device
self._entry_id = entry_id
self._attr_name = device.name
async def async_added_to_hass(self) -> None:
"""Subscribe to SHC events."""