Use EntityFeature enums in aladdin_connect (#69574)

This commit is contained in:
epenet 2022-04-07 15:23:50 +02:00 committed by GitHub
parent c61378337a
commit 2e7c65495b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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