Fix vicare binary sensor (#56912)

This commit is contained in:
Martin
2021-10-01 21:46:44 +02:00
committed by Paulus Schoutsen
parent 94b8877e2a
commit 75b6526cdc

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