Migrate TurnOnBehaviours to mashumaro (#1285)

This commit is contained in:
Steven B.
2024-11-20 14:35:51 +00:00
committed by GitHub
parent 0e5013d4b4
commit 955e7ab4d0
3 changed files with 54 additions and 25 deletions

View File

@@ -497,3 +497,9 @@ SYSINFO_SCHEMA_BULB = SYSINFO_SCHEMA.extend(
@bulb
def test_device_type_bulb(dev: Device):
assert dev.device_type in {DeviceType.Bulb, DeviceType.LightStrip}
@bulb_iot
async def test_turn_on_behaviours(dev: IotBulb):
behavior = await dev.get_turn_on_behavior()
assert behavior