Yield magic replaced at proper place
This commit is contained in:
parent
9955170b8d
commit
5d39c0f623
|
@ -212,6 +212,8 @@ def list_notification_as_text(
|
|||
return
|
||||
mesures = sonde.mesures
|
||||
|
||||
res = []
|
||||
|
||||
for previous, present in zip(mesures, mesures[1:]):
|
||||
date = present.content["date"]
|
||||
previous = utils.prepare(previous.content)
|
||||
|
@ -219,7 +221,6 @@ def list_notification_as_text(
|
|||
all_channels = sorted(set((*previous["channels"], *present["channels"])))
|
||||
|
||||
diff = utils.compare(all_channels, previous, present)
|
||||
res = []
|
||||
if diff:
|
||||
for d in diff["changements"]:
|
||||
line = date, *utils.clean_state(d)
|
||||
|
|
Loading…
Reference in New Issue