diff --git a/custom_components/econet300/binary_sensor.py b/custom_components/econet300/binary_sensor.py index 3eb0a78..34ab09c 100644 --- a/custom_components/econet300/binary_sensor.py +++ b/custom_components/econet300/binary_sensor.py @@ -1,6 +1,5 @@ """Econet binary sensor.""" -from dataclasses import dataclass import logging from homeassistant.components.binary_sensor import ( @@ -27,7 +26,6 @@ _LOGGER = logging.getLogger(__name__) -@dataclass class EconetBinarySensorEntityDescription(BinarySensorEntityDescription): """Describes Econet binary sensor entity.""" @@ -50,7 +48,7 @@ def __init__( self.entity_description = entity_description self.api = api self._attr_is_on = None - super().__init__(coordinator) + super().__init__(coordinator, api, entity_description) _LOGGER.debug( "EconetBinarySensor initialized with unique_id: %s, entity_description: %s", self.unique_id,