Migrate Venstar to has entity name (#99013)

This commit is contained in:
Joost Lekkerkerker 2023-08-29 08:40:35 +02:00 committed by GitHub
parent 5ec645161d
commit 202b0b5300
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 11 deletions

View file

@ -37,7 +37,7 @@ class VenstarBinarySensor(VenstarEntity, BinarySensorEntity):
super().__init__(coordinator, config)
self.alert = alert
self._attr_unique_id = f"{config.entry_id}_{alert.replace(' ', '_')}"
self._attr_name = f"{self._client.name} {alert}"
self._attr_name = alert
@property
def is_on(self):