supportsMonthlyExerciseFrequency function

bool supportsMonthlyExerciseFrequency(
  1. String? modelNumber,
  2. DeviceHost? deviceHost
)

Whether a generator with the given model number supports the ExerciseFrequency.monthly frequency.

Implementation

bool supportsMonthlyExerciseFrequency(
  String? modelNumber,
  DeviceHost? deviceHost,
) {
  // Only 26KW supports the monthly exercise frequency
  return kEcoExerciseModels.contains(modelNumber) ||
      deviceHost == DeviceHost.everonHub;
}