* Add a config flow for myq * Discovered by homekit * Fix gates being treated as garage doors * Offline devices now show as unavailable * Homekit flow * strip out icon * return -> raise
18 lines
409 B
Python
18 lines
409 B
Python
"""The MyQ integration."""
|
|
from homeassistant.const import STATE_CLOSED, STATE_CLOSING, STATE_OPEN, STATE_OPENING
|
|
|
|
DOMAIN = "myq"
|
|
|
|
PLATFORMS = ["cover"]
|
|
|
|
MYQ_DEVICE_TYPE = "device_type"
|
|
MYQ_DEVICE_TYPE_GATE = "gate"
|
|
MYQ_DEVICE_STATE = "state"
|
|
MYQ_DEVICE_STATE_ONLINE = "online"
|
|
|
|
MYQ_TO_HASS = {
|
|
"closed": STATE_CLOSED,
|
|
"closing": STATE_CLOSING,
|
|
"open": STATE_OPEN,
|
|
"opening": STATE_OPENING,
|
|
}
|