Fix vicare binary sensor (#56912)

This commit is contained in:
Martin 2021-10-01 21:46:44 +02:00 committed by GitHub
parent 8d06527cb1
commit 316070f1e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,6 +124,7 @@ class ViCareBinarySensor(BinarySensorEntity):
def __init__(self, name, api, description: DescriptionT):
"""Initialize the sensor."""
self.entity_description = description
self._attr_name = f"{name} {description.name}"
self._api = api
self._state = None