-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68eae9c
commit 74bce90
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
custom_components/chihiros/chihiros_led_control/device/universal_wrgb.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"""Universal WRGB device Model.""" | ||
|
||
from .base_device import BaseDevice | ||
|
||
|
||
class UniversalWRGB(BaseDevice): | ||
"""Universal WRGB device Class.""" | ||
|
||
_model_name = "Universal WRGB" | ||
_model_codes = [ | ||
"DYU550", | ||
"DYU600", | ||
"DYU700", | ||
"DYU800", | ||
"DYU920", | ||
"DYU1000", | ||
"DYU1200", | ||
"DYU1500", | ||
] | ||
_colors: dict[str, int] = { | ||
"red": 0, | ||
"green": 1, | ||
"blue": 2, | ||
"white": 3, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters