Fix rest to use BinarySensorEntity (#37054)
parent
fbd5ccf156
commit
02adcc532f
|
@ -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__(
|
||||
|
|
Loading…
Reference in New Issue