Use EntityFeature enums in aladdin_connect (#69574)
This commit is contained in:
parent
c61378337a
commit
2e7c65495b
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||
|
||||
from typing import Final
|
||||
|
||||
from homeassistant.components.cover import SUPPORT_CLOSE, SUPPORT_OPEN
|
||||
from homeassistant.components.cover import CoverEntityFeature
|
||||
from homeassistant.const import STATE_CLOSED, STATE_CLOSING, STATE_OPEN, STATE_OPENING
|
||||
|
||||
NOTIFICATION_ID: Final = "aladdin_notification"
|
||||
|
@ -16,4 +16,4 @@ STATES_MAP: Final[dict[str, str]] = {
|
|||
"closing": STATE_CLOSING,
|
||||
}
|
||||
|
||||
SUPPORTED_FEATURES: Final = SUPPORT_OPEN | SUPPORT_CLOSE
|
||||
SUPPORTED_FEATURES: Final = CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue