Add entity translations to Bosch SHC (#98750)
This commit is contained in:
parent
2e0038b981
commit
a0a06f16a7
6 changed files with 46 additions and 14 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue