Fix rest to use BinarySensorEntity (#37054)

pull/37061/head
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
1 changed files with 2 additions and 2 deletions

View File

@ -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__(