Add coordinator and number platform to LaMetric (#76766)

This commit is contained in:
Franck Nijhof 2022-08-20 19:06:35 +02:00 committed by GitHub
parent 9ac01b8c9b
commit 49957c752b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 183 additions and 25 deletions

View file

@ -1,11 +1,16 @@
"""Constants for the LaMetric integration."""
from datetime import timedelta
import logging
from typing import Final
from homeassistant.const import Platform
DOMAIN: Final = "lametric"
PLATFORMS = [Platform.NUMBER]
LOGGER = logging.getLogger(__package__)
SCAN_INTERVAL = timedelta(seconds=30)
CONF_CYCLES: Final = "cycles"
CONF_ICON_TYPE: Final = "icon_type"