prepTime and workTime of CookbookApp not imported correctly

This commit is contained in:
krial057
2021-11-01 18:01:05 +01:00
committed by GitHub
parent 486e2fca3e
commit c40f6986f1

View File

@ -36,8 +36,8 @@ class CookBookApp(Integration):
pass
try:
recipe.working_time = iso_duration_to_minutes(recipe_json['prep_time'])
recipe.waiting_time = iso_duration_to_minutes(recipe_json['cook_time'])
recipe.working_time = iso_duration_to_minutes(recipe_json['prepTime'])
recipe.waiting_time = iso_duration_to_minutes(recipe_json['cookTime'])
except Exception:
pass