From 95d980da4a91505126624856955b3350a44fa006 Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 4 Jul 2020 19:39:45 +0200 Subject: [PATCH] Fix base class for ViCare binary sensor to remove warning (#37478) --- homeassistant/components/vicare/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/vicare/binary_sensor.py b/homeassistant/components/vicare/binary_sensor.py index a35339c12a9..9ae615a6367 100644 --- a/homeassistant/components/vicare/binary_sensor.py +++ b/homeassistant/components/vicare/binary_sensor.py @@ -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):