Add binary_sensor

This commit is contained in:
ludeeus
2019-03-08 22:24:47 +01:00
parent ce2d663821
commit 6bd7005957
5 changed files with 85 additions and 13 deletions

View File

@ -1,20 +1,20 @@
"""Conststants."""
"""Conststants for blueprint."""
# Base component constants
DOMAIN = "blueprint"
DOMAIN_DATA = "{}_data".format(DOMAIN)
VERSION = "0.0.1"
PLATFORMS = ["sensor"]
REQUIRED_FILES = ["sensor.py", "const.py"]
PLATFORMS = ["binary_sensor", "sensor"]
REQUIRED_FILES = ["binary_sensor.py", "sensor.py", "const.py"]
ISSUE_URL = "https://github.com/custom-components/blueprint/issues"
STARTUP = """
----------------------------------------------
-------------------------------------------------------------------
{name}
Version: {version}
This is a custom component
If you have any issues with this you need to open an issue here:
{issueurl}
----------------------------------------------
-------------------------------------------------------------------
"""
# Operational
@ -22,3 +22,6 @@ URL = 'https://jsonplaceholder.typicode.com/todos/1'
# Icons
SENSOR_ICON = "mdi:format-quote-close"
# Device classes
BINARY_SENSOR_DEVICE_CLASS = 'connectivity'