From 02adcc532fa304aaae63aa0701213f52bda9e1fc Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 24 Jun 2020 14:53:17 +0200 Subject: [PATCH] Fix rest to use BinarySensorEntity (#37054) --- homeassistant/components/rest/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rest/binary_sensor.py b/homeassistant/components/rest/binary_sensor.py index 7efcf2a3557..a78c6aa5f2b 100644 --- a/homeassistant/components/rest/binary_sensor.py +++ b/homeassistant/components/rest/binary_sensor.py @@ -7,7 +7,7 @@ import voluptuous as vol from homeassistant.components.binary_sensor import ( DEVICE_CLASSES_SCHEMA, PLATFORM_SCHEMA, - BinarySensorDevice, + BinarySensorEntity, ) from homeassistant.const import ( CONF_AUTHENTICATION, @@ -117,7 +117,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None): ) -class RestBinarySensor(BinarySensorDevice): +class RestBinarySensor(BinarySensorEntity): """Representation of a REST binary sensor.""" def __init__(