mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-10-13 00:03:53 +00:00
Add fixtures for KH100, KE100 and KE110 and simulate TRV states (#1726)
This PR adds fixture files for: - KH100 (UK), hardware 1.0, firmware 1.7.5 - KE100 (UK), hardware 1.0, firmware 2.15.0 - KE110 (EU), hardware 1.0, firmware 1.4.0 The fixtures were collected from physical devices and anonymized for use in development and testing. The KE110 fixture is a new device model and has been added to the appropriate fixture category. This also improves test suite by adding TRV state simulation to allow tests pass on fixtures that report a non-heating state. --------- Co-authored-by: Teemu Rytilahti <tpr@iki.fi>
This commit is contained in:
@@ -52,11 +52,12 @@ async def test_set_temperature_turns_heating_on(dev: SmartDevice) -> None:
|
||||
assert temp_module.state is False
|
||||
assert temp_module.mode is ThermostatState.Off
|
||||
|
||||
await temp_module.set_target_temperature(10)
|
||||
max_temp = temp_module.maximum_target_temperature
|
||||
await temp_module.set_target_temperature(max_temp)
|
||||
await dev.update()
|
||||
assert temp_module.state is True
|
||||
assert temp_module.mode is ThermostatState.Heating
|
||||
assert temp_module.target_temperature == 10
|
||||
assert temp_module.target_temperature == max_temp
|
||||
|
||||
|
||||
@thermostats_smart
|
||||
|
||||
Reference in New Issue
Block a user