Merge pull request #1012 from krial057/patch-2

prepTime and workTime of CookbookApp not imported correctly
This commit is contained in:
vabene1111 2021-11-02 13:09:45 +01:00 committed by GitHub
commit c2c51d5e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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