Skip to content

Commit 092dd0f

Browse files
committed
Improve logging
1 parent 31bcdd5 commit 092dd0f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_smile.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,15 @@ def show_setup(location_list, device_list):
377377
@pytest.mark.asyncio
378378
async def device_test(self, smile=pw_smile.Smile, testdata=None, initialize=True):
379379
"""Perform basic device tests."""
380-
_LOGGER.info("Asserting testdata:")
381380
bsw_list = ["binary_sensors", "central", "climate", "sensors", "switches"]
382381
# Make sure to test with the day set to Sunday, needed for full testcoverage of schedules_temps()
383382
with freeze_time("2022-05-16 00:00:01"):
384383
if initialize:
384+
_LOGGER.info("Asserting testdata:")
385385
await smile._full_update_device()
386386
smile.get_all_devices()
387+
else:
388+
_LOGGER.info("Asserting updated testdata:")
387389
data = await smile.async_update()
388390

389391
if "heater_id" in data.gateway:

0 commit comments

Comments
 (0)