Restructure WLED integration (#51667)

This commit is contained in:
Franck Nijhof 2021-06-09 20:15:46 +02:00 committed by GitHub
parent c512e1df3c
commit 332c86ff8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 145 additions and 123 deletions

View file

@ -1,8 +1,13 @@
"""Constants for the WLED integration."""
from datetime import timedelta
import logging
# Integration domain
DOMAIN = "wled"
LOGGER = logging.getLogger(__package__)
SCAN_INTERVAL = timedelta(seconds=5)
# Attributes
ATTR_COLOR_PRIMARY = "color_primary"
ATTR_DURATION = "duration"