Skip to content

Commit c47644c

Browse files
committed
Fix test-code
1 parent 8473a73 commit c47644c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/test_adam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ async def test_connect_adam_plus_anna_new(self):
3636
assert smile.gateway_id == "da224107914542988a88561b4452b0f6"
3737
assert smile._last_active["f2bf9048bef64cc5b6d5110154e33c81"] == "Weekschema"
3838
assert smile._last_active["f871b8c4d63549319221e294e4f88074"] == "Badkamer"
39-
assert self.device_items == 173
40-
assert self.device_list == [
39+
assert self.entity_items == 173
40+
assert self.entity_list == [
4141
"da224107914542988a88561b4452b0f6",
4242
"056ee145a816487eaa69243c3280f8bf",
4343
"10016900610d4c7481df78c89606ef22",

tests/test_init.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -516,19 +516,19 @@ async def disconnect(cls, server, client):
516516
await server.close()
517517

518518
@staticmethod
519-
def show_setup(location_list, device_zone_list):
519+
def show_setup(location_list, entity_list):
520520
"""Show informative outline of the setup."""
521521
_LOGGER.info("This environment looks like:")
522522
for loc_id, loc_info in location_list.items():
523523
_LOGGER.info(
524524
" --> Location: %s", "{} ({})".format(loc_info["name"], loc_id)
525525
)
526526
devzone_count = 0
527-
for devzone_id, devzone_info in device_zone_list.items():
527+
for devzone_id, devzone_info in entity_list.items():
528528
if devzone_info.get("location", "not_found") == loc_id:
529529
devzone_count += 1
530530
_LOGGER.info(
531-
" + Device_Zone: %s",
531+
" + Entity: %s",
532532
"{} ({} - {})".format(
533533
devzone_info["name"], devzone_info["dev_class"], devzone_id
534534
),
@@ -595,7 +595,7 @@ def test_and_assert(test_dict, data, header):
595595
_LOGGER.debug("Item %s test-asserts: %s", testitem, item_asserts)
596596

597597
assert tests == asserts
598-
_LOGGER.debug("Total device_zone test-asserts: %s", asserts)
598+
_LOGGER.debug("Total entity test-asserts: %s", asserts)
599599

600600
# pragma warning disable S3776
601601

@@ -639,14 +639,14 @@ def test_and_assert(test_dict, data, header):
639639
_LOGGER.info("Skipping tests: Requested fixtures only") # pragma: no cover
640640
return # pragma: no cover
641641

642-
self.device_list = list(data.device_zones.keys())
642+
self.entity_list = list(data.entities.keys())
643643
location_list = smile.loc_data
644644

645645
_LOGGER.info("Gateway id = %s", data.gateway["gateway_id"])
646646
_LOGGER.info("Hostname = %s", smile.smile_hostname)
647647
_LOGGER.info("Gateway data = %s", data.gateway)
648648
_LOGGER.info("Entities list = %s", data.entities)
649-
self.show_setup(location_list, data.device_zones)
649+
self.show_setup(location_list, data.entities)
650650

651651
if skip_testing:
652652
return

0 commit comments

Comments
 (0)