Move Screenlogic lights to the light platform (#55467)

Co-authored-by: Kevin Worrel <37058192+dieselrabbit@users.noreply.github.com>
This commit is contained in:
J. Nick Koston 2021-10-20 12:38:21 -10:00 committed by GitHub
parent 18ce799f74
commit 20c35e6032
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 107 additions and 59 deletions

View file

@ -1,5 +1,5 @@
"""Constants for the ScreenLogic integration."""
from screenlogicpy.const import COLOR_MODE
from screenlogicpy.const import CIRCUIT_FUNCTION, COLOR_MODE
from homeassistant.util import slugify
@ -13,4 +13,6 @@ SUPPORTED_COLOR_MODES = {
slugify(name): num for num, name in COLOR_MODE.NAME_FOR_NUM.items()
}
LIGHT_CIRCUIT_FUNCTIONS = {CIRCUIT_FUNCTION.INTELLIBRITE, CIRCUIT_FUNCTION.LIGHT}
DISCOVERED_GATEWAYS = "_discovered_gateways"