...
 
Commits (19)
......@@ -18,11 +18,6 @@ yeelight module
:members:
:undoc-members:
.. autoclass:: yeelight.BulbType
:members:
:undoc-members:
.. _flow-objects:
Flow objects
......
......@@ -31,7 +31,7 @@ setup(
license="BSD",
classifiers=classifiers,
packages=["yeelight"],
install_requires=["enum-compat", "future"],
install_requires=["enum-compat", "future", 'pypiwin32;platform_system=="Windows"'],
test_suite="yeelight.tests",
tests_require=[],
)
......@@ -2,7 +2,8 @@
"""A Python library for controlling YeeLight RGB bulbs."""
from yeelight.main import Bulb, BulbType, BulbException, discover_bulbs
from yeelight.main import Bulb, BulbException, discover_bulbs
from yeelight.flow import Flow, HSVTransition, RGBTransition, TemperatureTransition, SleepTransition
from yeelight.enums import BulbType
from yeelight.version import __version__
......@@ -16,3 +16,26 @@ class PowerMode(IntEnum):
HSV = 3
COLOR_FLOW = 4
MOONLIGHT = 5
class BulbType(Enum):
"""
The bulb's type.
This is either `White` (for monochrome bulbs), `Color` (for color bulbs), `WhiteTemp` (for white bulbs with
configurable color temperature), `WhiteTempMood` for white bulbs with mood lighting (like the JIAOYUE 650 LED ceiling
light), or `Unknown` if the properties have not been fetched yet.
"""
Unknown = -1
White = 0
Color = 1
WhiteTemp = 2
WhiteTempMood = 3
class LightType(IntEnum):
"""Type of light to control."""
Main = 0
Ambient = 1
This diff is collapsed.