2020-08-05 03:00:02 +00:00
|
|
|
"""Allows to configure custom shell commands to turn a value for a sensor."""
|
|
|
|
|
2023-06-03 03:35:11 +00:00
|
|
|
import logging
|
|
|
|
|
2021-12-28 20:13:20 +00:00
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
2023-06-03 03:35:11 +00:00
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
|
2020-08-05 03:00:02 +00:00
|
|
|
CONF_COMMAND_TIMEOUT = "command_timeout"
|
|
|
|
DEFAULT_TIMEOUT = 15
|
2020-08-26 00:52:36 +00:00
|
|
|
DOMAIN = "command_line"
|
2021-12-28 20:13:20 +00:00
|
|
|
PLATFORMS = [
|
|
|
|
Platform.BINARY_SENSOR,
|
|
|
|
Platform.COVER,
|
|
|
|
Platform.SENSOR,
|
|
|
|
Platform.SWITCH,
|
|
|
|
]
|