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

This commit is contained in:
Flyte committed 2016-02-18 17:25:02 +00:00
1 parent 348b7abe7d
commit c1d39a2fce
3 files changed
+16 -33

No files matched your search

@@ -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,)