hass-core/homeassistant/components/versasense/const.py
Steven Impens 475c8ebae2 Add component VersaSense ()
* Add component VersaSense

* Updates based on review

* Changes based on review

* Fixed whitespace

* Fixed lines too long

* Fixed lines too long

* Formatted using black

* Added available property

* Set unavailable property appropriately

* Conversion to f-strings

* Load platform only once per platform

* Fixed duplicate identifiers across multiple devices

* Single call to async_add_entities during setup

* Removed unnecessary async/await syntax

* Added constants for key-value pairs

* Removed async/await syntax

* Added breaks in measurement check

* Added guard clause for discovery_info
2019-11-19 14:05:23 +01:00

11 lines
344 B
Python

"""Constants for versasense."""
KEY_CONSUMER = "consumer"
KEY_IDENTIFIER = "identifier"
KEY_MEASUREMENT = "measurement"
KEY_PARENT_MAC = "parent_mac"
KEY_PARENT_NAME = "parent_name"
KEY_UNIT = "unit"
PERIPHERAL_CLASS_SENSOR = "sensor"
PERIPHERAL_CLASS_SENSOR_ACTUATOR = "sensor-actuator"
PERIPHERAL_STATE_OFF = "OFF"
PERIPHERAL_STATE_ON = "ON"