Remove unused import and unnecessary DOMAIN constant from TCP components.
This commit is contained in:
parent
15303fd32d
commit
ada561df30
2 changed files with 2 additions and 3 deletions
|
@ -7,7 +7,8 @@ https://home-assistant.io/components/binary_sensor.tcp/
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||||
from homeassistant.components.sensor.tcp import Sensor, DOMAIN, CONF_VALUE_ON
|
from homeassistant.components.sensor.tcp import Sensor, CONF_VALUE_ON
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ from homeassistant.helpers import template
|
||||||
from homeassistant.exceptions import TemplateError
|
from homeassistant.exceptions import TemplateError
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
DOMAIN = "tcp"
|
|
||||||
|
|
||||||
CONF_PORT = "port"
|
CONF_PORT = "port"
|
||||||
CONF_TIMEOUT = "timeout"
|
CONF_TIMEOUT = "timeout"
|
||||||
CONF_PAYLOAD = "payload"
|
CONF_PAYLOAD = "payload"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue