diff --git a/core/class/netatmo.class.php b/core/class/netatmo.class.php index ef6bf9d..f13b6f6 100644 --- a/core/class/netatmo.class.php +++ b/core/class/netatmo.class.php @@ -106,7 +106,7 @@ public static function refreshClassNetatmo($homesdata = null) { if (isset($home['schedules']) && count($home['schedules']) > 0) { $mode = ''; foreach ($home['schedules'] as $schedule) { - if (!$schedule['selected']) { + if (!isset($schedule['selected']) || !$schedule['selected']) { continue; } $mode .= $schedule['name'] . ',';