mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
MyQ Open State Fix (#16681)
* MyQ Open State Fix Fixes issues with MyQ reporting an open state * Update myq.py * MyQ STATE_OPEN Fix remove un-needed code
This commit is contained in:
parent
6e4a6cc069
commit
60dfd68083
@ -11,8 +11,8 @@ import voluptuous as vol
|
|||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import (
|
||||||
CoverDevice, SUPPORT_CLOSE, SUPPORT_OPEN)
|
CoverDevice, SUPPORT_CLOSE, SUPPORT_OPEN)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_PASSWORD, CONF_TYPE, CONF_USERNAME, STATE_CLOSED, STATE_CLOSING,
|
CONF_PASSWORD, CONF_TYPE, CONF_USERNAME, STATE_CLOSED, STATE_OPEN,
|
||||||
STATE_OPENING)
|
STATE_CLOSING, STATE_OPENING)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['pymyq==0.0.15']
|
REQUIREMENTS = ['pymyq==0.0.15']
|
||||||
@ -23,6 +23,7 @@ DEFAULT_NAME = 'myq'
|
|||||||
|
|
||||||
MYQ_TO_HASS = {
|
MYQ_TO_HASS = {
|
||||||
'closed': STATE_CLOSED,
|
'closed': STATE_CLOSED,
|
||||||
|
'open': STATE_OPEN,
|
||||||
'closing': STATE_CLOSING,
|
'closing': STATE_CLOSING,
|
||||||
'opening': STATE_OPENING
|
'opening': STATE_OPENING
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user