Fix rest to use BinarySensorEntity (#37054)

This commit is contained in:
Franck Nijhof 2020-06-24 14:53:17 +02:00 committed by GitHub
parent fbd5ccf156
commit 02adcc532f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import voluptuous as vol
from homeassistant.components.binary_sensor import ( from homeassistant.components.binary_sensor import (
DEVICE_CLASSES_SCHEMA, DEVICE_CLASSES_SCHEMA,
PLATFORM_SCHEMA, PLATFORM_SCHEMA,
BinarySensorDevice, BinarySensorEntity,
) )
from homeassistant.const import ( from homeassistant.const import (
CONF_AUTHENTICATION, 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.""" """Representation of a REST binary sensor."""
def __init__( def __init__(