mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
multiple inheritance for nest binary sensor
This commit is contained in:
parent
9210c57c2d
commit
9617288bd5
@ -11,6 +11,7 @@ import socket
|
|||||||
import homeassistant.components.nest as nest
|
import homeassistant.components.nest as nest
|
||||||
|
|
||||||
from homeassistant.components.sensor.nest import NestSensor
|
from homeassistant.components.sensor.nest import NestSensor
|
||||||
|
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||||
|
|
||||||
|
|
||||||
BINARY_TYPES = ['fan',
|
BINARY_TYPES = ['fan',
|
||||||
@ -45,7 +46,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class NestBinarySensor(NestSensor):
|
class NestBinarySensor(NestSensor, BinarySensorDevice):
|
||||||
""" Represents a Nst Binary sensor. """
|
""" Represents a Nst Binary sensor. """
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user