diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 91d9b33da69ca5..d92979ad32ce94 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -438,7 +438,7 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr } auto RequestedSystemMode = static_cast(*value); if (ControlSequenceOfOperation > ControlSequenceOfOperationEnum::kCoolingAndHeatingWithReheat || - RequestedSystemMode > SystemModeEnum::kFanOnly) + RequestedSystemMode > SystemModeEnum::kSleep) { return imcode::InvalidValue; }