hass-core/homeassistant/components/zwave_me/const.py
Poltorak Serguei 9d016dd434
Add Z-Wave.Me Fan support (#69768)
* Fan entity

* Fix union

* Fix union

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Fix percentage scale

Co-authored-by: Dmitry Vlasov <kerbalspacema@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-04-19 13:06:31 +02:00

38 lines
807 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"
FAN = "fan"
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.FAN,
Platform.LIGHT,
Platform.LOCK,
Platform.NUMBER,
Platform.SENSOR,
Platform.SIREN,
Platform.SWITCH,
]