Fix base class for ViCare binary sensor to remove warning (#37478)

This commit is contained in:
Martin authored and Paulus Schoutsen committed 2020-07-06 22:19:58 +00:00
1 parent 050a558243
commit 16b59220f3
1 file changed
+2 -2
@@ -5,7 +5,7 @@ import requests
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_POWER,
BinarySensorDevice,
BinarySensorEntity,
)
from homeassistant.const import CONF_DEVICE_CLASS, CONF_NAME
@@ -77,7 +77,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
)
class ViCareBinarySensor(BinarySensorDevice):
class ViCareBinarySensor(BinarySensorEntity):
"""Representation of a ViCare sensor."""
def __init__(self, name, api, sensor_type):