Erreur si aucun module

This commit is contained in:
LeClubber
2022-03-27 19:20:38 +02:00
parent cf62d1162b
commit 7aa8f97913

View File

@@ -44,6 +44,7 @@ class iDiamant():
jsonStatus = json.loads(response.text)
homes = jsonStatus['body']['homes']
for home in homes:
if 'modules' in home:
home_id = home['id']
modules = home['modules']
for module in modules: