Skip to content

Commit

Permalink
Replace BinarySensorDevice to BinarySensorEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Sep 7, 2020
1 parent 2396a5a commit d6f21ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/car_wash/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit d6f21ff

Please sign in to comment.