* Cover integration * isort fix * Update homeassistant/components/zwave_me/cover.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update cover.py * Update cover.py * Apply suggestions from code review Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * coveragerc for cover * Fix position range * Clean up Co-authored-by: Dmitry Vlasov <kerbalspacema@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
36 lines
773 B
Python
36 lines
773 B
Python
"""Constants for ZWaveMe."""
|
|
from homeassistant.backports.enum import StrEnum
|
|
from homeassistant.const import Platform
|
|
|
|
# Base component constants
|
|
DOMAIN = "zwave_me"
|
|
|
|
|
|
class ZWaveMePlatform(StrEnum):
|
|
"""Included ZWaveMe platforms."""
|
|
|
|
BINARY_SENSOR = "sensorBinary"
|
|
BUTTON = "toggleButton"
|
|
CLIMATE = "thermostat"
|
|
COVER = "motor"
|
|
LOCK = "doorlock"
|
|
NUMBER = "switchMultilevel"
|
|
SWITCH = "switchBinary"
|
|
SENSOR = "sensorMultilevel"
|
|
SIREN = "siren"
|
|
RGBW_LIGHT = "switchRGBW"
|
|
RGB_LIGHT = "switchRGB"
|
|
|
|
|
|
PLATFORMS = [
|
|
Platform.BINARY_SENSOR,
|
|
Platform.BUTTON,
|
|
Platform.CLIMATE,
|
|
Platform.COVER,
|
|
Platform.LIGHT,
|
|
Platform.LOCK,
|
|
Platform.NUMBER,
|
|
Platform.SENSOR,
|
|
Platform.SIREN,
|
|
Platform.SWITCH,
|
|
]
|