Add switch platform

This commit is contained in:
ludeeus
2019-03-10 15:55:33 +01:00
parent 6ab2f89a30
commit 56d61a8c1f
6 changed files with 102 additions and 13 deletions

View File

@ -3,8 +3,8 @@
DOMAIN = "blueprint"
DOMAIN_DATA = "{}_data".format(DOMAIN)
VERSION = "0.0.1"
PLATFORMS = ["binary_sensor", "sensor"]
REQUIRED_FILES = ["binary_sensor.py", "sensor.py", "const.py"]
PLATFORMS = ["binary_sensor", "sensor", "switch"]
REQUIRED_FILES = ["binary_sensor.py", "const.py", "sensor.py", "switch.py"]
ISSUE_URL = "https://github.com/custom-components/blueprint/issues"
STARTUP = """
@ -21,7 +21,7 @@ If you have any issues with this you need to open an issue here:
URL = "https://jsonplaceholder.typicode.com/todos/1"
# Icons
SENSOR_ICON = "mdi:format-quote-close"
ICON = "mdi:format-quote-close"
# Device classes
BINARY_SENSOR_DEVICE_CLASS = "connectivity"
@ -29,6 +29,7 @@ BINARY_SENSOR_DEVICE_CLASS = "connectivity"
# Configuration
CONF_BINARY_SENSOR = "binary_sensor"
CONF_SENSOR = "sensor"
CONF_SWITCH = "switch"
CONF_ENABLED = "enabled"
CONF_NAME = "name"