Skip to content

Commit

Permalink
Fix OpenClose trait
Browse files Browse the repository at this point in the history
  • Loading branch information
atrovato committed Apr 7, 2023
1 parent c687369 commit c728d9e
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,18 @@ const openCloseTrait = {
writeValue: (paramValue) => {
return paramValue;
},
features: [
{
category: DEVICE_FEATURE_CATEGORIES.CURTAIN,
type: DEVICE_FEATURE_TYPES.CURTAIN.POSITION,
},
{
category: DEVICE_FEATURE_CATEGORIES.SHUTTER,
type: DEVICE_FEATURE_TYPES.SHUTTER.POSITION,
},
],
getFeatures: () => {
return [
{
category: DEVICE_FEATURE_CATEGORIES.CURTAIN,
type: DEVICE_FEATURE_TYPES.CURTAIN.POSITION,
},
{
category: DEVICE_FEATURE_CATEGORIES.SHUTTER,
type: DEVICE_FEATURE_TYPES.SHUTTER.POSITION,
},
];
},
},
},
},
Expand Down

0 comments on commit c728d9e

Please sign in to comment.