Skip to content

Commit

Permalink
Reverts MoveToLevel workaround from 0.11.4 (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 authored Nov 12, 2024
1 parent 34a59c5 commit eb222f7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 21 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@ The main work (all changes without a GitHub username in brackets in the below li

- @matter/node
- Enhancement: The `with` functions on endpoint and cluster behavior types now alias to `withBehaviors` and `withFeatures` respectively to make their function more explicit
- Fix: Trigger CommissioningServer#initiateCommissioning when server restarts outside of factory reset
- Fix: Triggers CommissioningServer#initiateCommissioning when server restarts outside of factory reset

- @matter/nodejs
- Feature: New export @matter/nodejs/config allows for fine-grained configuration of Node.js bootstrap logic

- @matter/create
- Feature: Add command line option "--verbose" to enable informational NPM messages during initialization
- Feature: Add template "contributor" to bootstrap dev environment for working on matter.js itself
- Feature: Added command line option "--verbose" to enable informational NPM messages during initialization
- Feature: Added template "contributor" to bootstrap dev environment for working on matter.js itself

- @matter/tools
- Multi-project test runs now use a single process to improve performance

- Matter cluster definitions and implementations
- Fix: Reverts MoveToLevel workaround from 0.11.4

- matter.js git repository
- Feature: We've added project configuration for VS code including recommended extensions, code snippets and launch configurations

Expand Down
12 changes: 0 additions & 12 deletions models/src/local/LevelControlOverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,5 @@ LocalMatter.children.push({
{ tag: "command", id: 5, name: "MoveWithOnOff", type: "Move" },
{ tag: "command", id: 6, name: "StepWithOnOff", type: "Step" },
{ tag: "command", id: 7, name: "StopWithOnOff", type: "Stop" },

// Temporarily declare OptionsMask as optional fields because current matter sdk implementation handles
// them optionally. Might be adjusted back once clarified in detail
{
tag: "command",
id: 0,
name: "MoveToLevel",
children: [
{ tag: "field", id: 2, name: "OptionsMask", conformance: "O" },
{ tag: "field", id: 3, name: "OptionsOverride", conformance: "O" },
],
},
],
});
4 changes: 2 additions & 2 deletions packages/model/src/standard/elements/LevelControl.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class LevelControlServerLogic extends LevelControlLogicBase {
* If you want to implement own logic just override {@link moveToLevelLogic} with is also used for {@link moveToLevelWithOnOff}.
*/
override moveToLevel({ level, transitionTime, optionsMask, optionsOverride }: LevelControl.MoveToLevelRequest) {
const effectiveOptions = this.#calculateEffectiveOptions(optionsMask ?? {}, optionsOverride ?? {});
const effectiveOptions = this.#calculateEffectiveOptions(optionsMask, optionsOverride);
if (!this.#optionsAllowExecution(effectiveOptions)) {
return;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/types/src/clusters/level-control.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb222f7

Please sign in to comment.