Introduce const file in LaMetric (#66929)

This commit is contained in:
Franck Nijhof 2022-02-20 11:47:36 +01:00 committed by GitHub
parent 94a0f1c7b3
commit ddedaf6f70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 34 deletions

View file

@ -0,0 +1,16 @@
"""Constants for the LaMetric integration."""
import logging
from typing import Final
DOMAIN: Final = "lametric"
LOGGER = logging.getLogger(__package__)
AVAILABLE_PRIORITIES: Final = ["info", "warning", "critical"]
AVAILABLE_ICON_TYPES: Final = ["none", "info", "alert"]
CONF_CYCLES: Final = "cycles"
CONF_LIFETIME: Final = "lifetime"
CONF_PRIORITY: Final = "priority"
CONF_ICON_TYPE: Final = "icon_type"