mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-19 22:08:02 +00:00
Move SmartBulb into SmartDevice (#874)
This commit is contained in:
@@ -61,7 +61,16 @@ async def test_childdevice_properties(dev: SmartChildDevice):
|
||||
# Skip emeter and time properties
|
||||
# TODO: needs API cleanup, emeter* should probably be removed in favor
|
||||
# of access through features/modules, handling of time* needs decision.
|
||||
if name.startswith("emeter_") or name.startswith("time"):
|
||||
if (
|
||||
name.startswith("emeter_")
|
||||
or name.startswith("time")
|
||||
or name.startswith("fan")
|
||||
or name.startswith("color")
|
||||
or name.startswith("brightness")
|
||||
or name.startswith("valid_temperature_range")
|
||||
or name.startswith("hsv")
|
||||
or name.startswith("effect")
|
||||
):
|
||||
continue
|
||||
try:
|
||||
_ = getattr(first, name)
|
||||
|
Reference in New Issue
Block a user