mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Use EntityFeature enums in aladdin_connect (#69574)
This commit is contained in:
parent
c61378337a
commit
2e7c65495b
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from typing import Final
|
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
|
from homeassistant.const import STATE_CLOSED, STATE_CLOSING, STATE_OPEN, STATE_OPENING
|
||||||
|
|
||||||
NOTIFICATION_ID: Final = "aladdin_notification"
|
NOTIFICATION_ID: Final = "aladdin_notification"
|
||||||
@ -16,4 +16,4 @@ STATES_MAP: Final[dict[str, str]] = {
|
|||||||
"closing": STATE_CLOSING,
|
"closing": STATE_CLOSING,
|
||||||
}
|
}
|
||||||
|
|
||||||
SUPPORTED_FEATURES: Final = SUPPORT_OPEN | SUPPORT_CLOSE
|
SUPPORTED_FEATURES: Final = CoverEntityFeature.OPEN | CoverEntityFeature.CLOSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user