Revert "Use EntityFeature in myq"

This reverts commit 44a31b1a03.
This commit is contained in:
epenet
2022-04-06 13:38:16 +00:00
parent 916a612a60
commit a6be42fa17
+3 -2
View File
@@ -3,9 +3,10 @@ from pymyq.const import DEVICE_TYPE_GATE as MYQ_DEVICE_TYPE_GATE
from pymyq.errors import MyQError
from homeassistant.components.cover import (
SUPPORT_CLOSE,
SUPPORT_OPEN,
CoverDeviceClass,
CoverEntity,
CoverEntityFeature,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import STATE_CLOSED, STATE_CLOSING, STATE_OPEN, STATE_OPENING
@@ -35,7 +36,7 @@ async def async_setup_entry(
class MyQCover(MyQEntity, CoverEntity):
"""Representation of a MyQ cover."""
_attr_supported_features = CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE
_attr_supported_features = SUPPORT_OPEN | SUPPORT_CLOSE
def __init__(self, coordinator, device):
"""Initialize with API object, device id."""