Skip to content

Commit b1f33d2

Browse files
committed
Update adam_jip fixture for testing in pw-beta/Core plugwise
1 parent 69a5fec commit b1f33d2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

scripts/manual_fixtures.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@ def json_writer(manual_name: str, all_data: dict, notifications: dict):
3737

3838
### ADAM
3939

40+
base_adam_manual = "adam_jip"
41+
basefile = f"./fixtures/{base_adam_manual}/all_data.json"
42+
basefile_n = f"./fixtures/{base_adam_manual}/notifications.json"
43+
44+
io = open(basefile)
45+
base = json.load(io)
46+
io_n = open(basefile_n)
47+
base_n = json.load(io_n)
48+
49+
adam_jip = base.copy()
50+
51+
# Change mode to off for "1346fbd8498d4dbcab7e18d51b771f3d"
52+
adam_jip["devices"]["1346fbd8498d4dbcab7e18d51b771f3d"]["mode"]="off"
53+
)
54+
55+
json_writer("adam_multiple_devices_per_zone", adam_multiple_devices_per_zone, base_n)
56+
57+
### Manual Adam fixtures
58+
4059
base_adam_manual = "adam_plus_anna_new"
4160
basefile = f"./fixtures/{base_adam_manual}/all_data.json"
4261
basefile_n = f"./fixtures/{base_adam_manual}/notifications.json"

0 commit comments

Comments
 (0)