Remove unnecessary top-level TCP component. Fix order of inheritance on TCP BinarySensor.

This commit is contained in:
Flyte 2016-02-18 16:57:32 +00:00
parent 348b7abe7d
commit c1d39a2fce
3 changed files with 16 additions and 33 deletions

View file

@ -6,8 +6,7 @@ Provides a binary_sensor which gets its values from a TCP socket.
import logging
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.components.tcp import DOMAIN, CONF_VALUE_ON
from homeassistant.components.sensor.tcp import Sensor
from homeassistant.components.sensor.tcp import Sensor, DOMAIN, CONF_VALUE_ON
DEPENDENCIES = [DOMAIN]
@ -22,7 +21,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
add_entities((BinarySensor(hass, config),))
class BinarySensor(Sensor, BinarySensorDevice):
class BinarySensor(BinarySensorDevice, Sensor):
""" A binary sensor which is on when its state == CONF_VALUE_ON. """
required = (CONF_VALUE_ON,)