Skip to content

Commit 33b64ac

Browse files
bouwewBouwe Westerdijk
authored andcommitted
Add Circle+'s to Stretch test asserts
1 parent de554c4 commit 33b64ac

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

tests/test_smile.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,6 +2528,23 @@ async def test_connect_stretch_v31(self):
25282528
"vendor": "Plugwise B.V.",
25292529
"zigbee_mac_address": "ABCD012345670101",
25302530
},
2531+
"e1c884e7dede431dadee09506ec4f859": {
2532+
"class": "refrigerator",
2533+
"fw": "2011-06-27T10:47:37+02:00",
2534+
"hw": "6539-0700-7330",
2535+
"location": "0000aaaa0000aaaa0000aaaa0000aa00",
2536+
"mac_address": None,
2537+
"model": "Circle+ type F",
2538+
"name": "Koelkast (92C4A)",
2539+
"vendor": "Plugwise",
2540+
"zigbee_mac_address": "0123456789AB",
2541+
"sensors": {
2542+
"electricity_consumed": 50.5,
2543+
"electricity_consumed_interval": 0.08,
2544+
"electricity_produced": 0.0,
2545+
},
2546+
"switches": {"relay": True, "lock": False},
2547+
},
25312548
"5871317346d045bc9f6b987ef25ee638": {
25322549
"class": "water_heater_vessel",
25332550
"fw": "2011-06-27T10:52:18+02:00",
@@ -2661,6 +2678,24 @@ async def test_connect_stretch_v23(self):
26612678
"vendor": "Plugwise B.V.",
26622679
"zigbee_mac_address": "ABCD012345670101",
26632680
},
2681+
"24b2ed37c8964c73897db6340a39c129": {
2682+
"class": "router",
2683+
"fw": "2011-06-27T10:47:37+02:00",
2684+
"hw": "6539-0700-7325",
2685+
"location": "0000aaaa0000aaaa0000aaaa0000aa00",
2686+
"mac_address": None,
2687+
"model": "Circle+ type F",
2688+
"name": "MK Netwerk 1A4455E",
2689+
"vendor": "Plugwise",
2690+
"zigbee_mac_address": "0123456789AB",
2691+
"sensors": {
2692+
"electricity_consumed": 4.63,
2693+
"electricity_consumed_interval": 0.65,
2694+
"electricity_produced": 0.0,
2695+
"electricity_produced_interval": 0.0,
2696+
},
2697+
"switches": {"relay": True, "lock": True},
2698+
},
26642699
"09c8ce93d7064fa6a233c0e4c2449bfe": {
26652700
"class": "lamp",
26662701
"fw": "2011-06-27T10:52:18+02:00",
@@ -2970,6 +3005,25 @@ async def test_connect_stretch_v27_no_domain(self):
29703005
"""Test erroneous domain_objects file from user."""
29713006
# testdata dictionary with key ctrl_id_dev_id => keys:values
29723007
testdata = {
3008+
# Circle+
3009+
"9b9bfdb3c7ad4ca5817ccaa235f1e094": {
3010+
"class": "zz_misc",
3011+
"fw": "2011-06-27T10:47:37+02:00",
3012+
"hw": "6539-0700-7326",
3013+
"location": "0000aaaa0000aaaa0000aaaa0000aa00",
3014+
"mac_address": None,
3015+
"model": "Circle+ type F",
3016+
"name": "25881A2",
3017+
"vendor": "Plugwise",
3018+
"zigbee_mac_address": "ABCD012345670A04",
3019+
"sensors": {
3020+
"electricity_consumed": 13.3,
3021+
"electricity_consumed_interval": 7.77,
3022+
"electricity_produced": 0.0,
3023+
"electricity_produced_interval": 0.0,
3024+
},
3025+
"switches": {"relay": True, "lock": True},
3026+
},
29733027
# 76BF93
29743028
"8b8d14b242e24cd789743c828b9a2ea9": {
29753029
"sensors": {"electricity_consumed": 1.69},

0 commit comments

Comments
 (0)