diff --git a/custom_components/car_wash/binary_sensor.py b/custom_components/car_wash/binary_sensor.py index e6b0818..c9355bb 100644 --- a/custom_components/car_wash/binary_sensor.py +++ b/custom_components/car_wash/binary_sensor.py @@ -13,7 +13,7 @@ from datetime import datetime import voluptuous as vol -from homeassistant.components.binary_sensor import BinarySensorDevice +from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.components.weather import ( ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TIME, @@ -70,7 +70,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info= async_add_entities([CarWashBinarySensor(hass, name, weather, days)]) -class CarWashBinarySensor(BinarySensorDevice): +class CarWashBinarySensor(BinarySensorEntity): """Implementation of an Car Wash binary sensor.""" def __init__(self, hass, friendly_name, weather_entity, days):