mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
multiple inheritance for nest binary sensor
This commit is contained in:
@@ -11,6 +11,7 @@ import socket
|
||||
import homeassistant.components.nest as nest
|
||||
|
||||
from homeassistant.components.sensor.nest import NestSensor
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||
|
||||
|
||||
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. """
|
||||
|
||||
@property
|
||||
|
Reference in New Issue
Block a user