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

pull/37110/head^2
Martin 2020-07-04 19:39:45 +02:00 committed by GitHub
parent 7b855927e2
commit 95d980da4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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):