Skip to content

Commit 4bffcf5

Browse files
committed
Use same indent/newlines as expected in core
1 parent be8ede1 commit 4bffcf5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/test_smile.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def _write_json(self, call, data):
5151
fixture_file.write(
5252
json.dumps(
5353
data,
54+
indent=2,
5455
default=lambda x: list(x) if isinstance(x, set) else x,
5556
)
5657
)
@@ -1202,7 +1203,7 @@ async def test_connect_adam_plus_anna(self):
12021203
"b128b4bbbd1f47e9bf4d756e8fb5ee94": {
12031204
"hw": "AME Smile 2.0 board",
12041205
"mac_address": "012345670001",
1205-
"zigbee_mac_address": "012345670101",
1206+
"zigbee_mac_address": "ABCD012345670101",
12061207
"sensors": {
12071208
"outdoor_temperature": 11.9,
12081209
},
@@ -1505,7 +1506,7 @@ async def test_connect_adam_zone_per_device(self):
15051506
"binary_sensors": {"plugwise_notification": True},
15061507
"sensors": {"outdoor_temperature": 7.69},
15071508
"mac_address": "012345670001",
1508-
"zigbee_mac_address": "012345670101",
1509+
"zigbee_mac_address": "ABCD012345670101",
15091510
},
15101511
# Modem
15111512
"675416a629f343c495449970e2ca37b5": {
@@ -1745,7 +1746,7 @@ async def test_connect_adam_multiple_devices_per_zone(self):
17451746
"electricity_produced_interval": 0.0,
17461747
},
17471748
"switches": {"relay": True, "lock": True},
1748-
"zigbee_mac_address": "012345670A14",
1749+
"zigbee_mac_address": "ABCD012345670A14",
17491750
},
17501751
"4a810418d5394b3f82727340b91ba740": {
17511752
"class": "router",
@@ -2268,7 +2269,7 @@ async def test_connect_stretch_v31(self):
22682269
"model": "Stretch",
22692270
"name": "Stretch",
22702271
"vendor": "Plugwise B.V.",
2271-
"zigbee_mac_address": "012345670101",
2272+
"zigbee_mac_address": "ABCD012345670101",
22722273
},
22732274
"5871317346d045bc9f6b987ef25ee638": {
22742275
"class": "water_heater_vessel",
@@ -2413,7 +2414,7 @@ async def test_connect_stretch_v23(self):
24132414
"name": "Stretch",
24142415
"vendor": "Plugwise B.V.",
24152416
"mac_address": "01:23:45:67:89:AB",
2416-
"zigbee_mac_address": "012345670101",
2417+
"zigbee_mac_address": "ABCD012345670101",
24172418
},
24182419
"09c8ce93d7064fa6a233c0e4c2449bfe": {
24192420
"class": "lamp",
@@ -2428,7 +2429,7 @@ async def test_connect_stretch_v23(self):
24282429
"electricity_produced": 0.0,
24292430
},
24302431
"switches": {"relay": False, "lock": False},
2431-
"zigbee_mac_address": "012345670A01",
2432+
"zigbee_mac_address": "ABCD012345670A01",
24322433
},
24332434
"33a1c784a9ff4c2d8766a0212714be09": {
24342435
"class": "lighting",

0 commit comments

Comments
 (0)