Skip to content

Commit 95c9d16

Browse files
committed
Add device for removal to m_adam_heating fixture
1 parent 5c32d78 commit 95c9d16

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

scripts/manual_fixtures.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,35 @@ def json_writer(
242242
"resolution": 0.01,
243243
}
244244

245+
# Add a non-existing device for testing device-removal
246+
m_adam_heating["devices"].update(
247+
{
248+
"01234567890abcdefghijklmnopqrstu": {
249+
"available": False,
250+
"dev_class": "thermo_sensor",
251+
"firmware": "2020-11-04T01:00:00+01:00",
252+
"hardware": "1",
253+
"location": "f871b8c4d63549319221e294e4f88074",
254+
"model": "Tom/Floor",
255+
"name": "Tom Badkamer",
256+
"sensors": {
257+
"battery": 99,
258+
"temperature": 18.6,
259+
"temperature_difference": 2.3,
260+
"valve_position": 0.0
261+
},
262+
"temperature_offset": {
263+
"lower_bound": -2.0,
264+
"resolution": 0.1,
265+
"setpoint": 0.1,
266+
"upper_bound": 2.0
267+
},
268+
"vendor": "Plugwise",
269+
"zigbee_mac_address": "ABCD012345670A01"
270+
}
271+
}
272+
)
273+
245274
json_writer("m_adam_heating", m_adam_heating, base_d, base_n)
246275

247276
### ANNA

0 commit comments

Comments
 (0)