diff --git a/src/app/clusters/fan-control-server/fan-control-server.cpp b/src/app/clusters/fan-control-server/fan-control-server.cpp index 46f4c6d7c0bb70..72171693a0eee2 100644 --- a/src/app/clusters/fan-control-server/fan-control-server.cpp +++ b/src/app/clusters/fan-control-server/fan-control-server.cpp @@ -198,7 +198,7 @@ MatterFanControlClusterServerPreAttributeChangedCallback(const ConcreteAttribute } else { - res = Status::WriteIgnored; + res = Status::InvalidInState; } } else @@ -234,7 +234,7 @@ MatterFanControlClusterServerPreAttributeChangedCallback(const ConcreteAttribute } else { - res = Status::WriteIgnored; + res = Status::InvalidInState; } } else diff --git a/src/app/tests/suites/TestFanControl.yaml b/src/app/tests/suites/TestFanControl.yaml index 92fca4f2a6e253..663bdf9e641db5 100644 --- a/src/app/tests/suites/TestFanControl.yaml +++ b/src/app/tests/suites/TestFanControl.yaml @@ -69,6 +69,8 @@ tests: attribute: "PercentSetting" arguments: value: null + response: + error: INVALID_IN_STATE - label: "Read back percent setting" command: "readAttribute" @@ -105,6 +107,8 @@ tests: attribute: "SpeedSetting" arguments: value: null + response: + error: INVALID_IN_STATE - label: "Read back speed setting" command: "readAttribute"