Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
callemand committed Sep 25, 2023
1 parent 6e29cc7 commit 6d8f4de
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions server/test/services/tuya/lib/tuya.discoverDevices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ describe('TuyaHandler.discoverDevices', () => {
type: 'Boolean',
},
],
status: [
{
name: 'cur_power',
code: 'cur_power',
type: 'Integer',
},
],
},
}),
};
Expand Down Expand Up @@ -96,6 +103,18 @@ describe('TuyaHandler.discoverDevices', () => {
{
external_id: 'tuya:uuid',
features: [
{
category: 'switch',
external_id: 'tuya:uuid:cur_power',
has_feedback: false,
max: 1,
min: 0,
name: 'cur_power',
read_only: true,
selector: 'tuya:uuid:cur_power',
type: 'power',
unit: 'watt',
},
{
category: 'switch',
external_id: 'tuya:uuid:switch_1',
Expand Down

0 comments on commit 6d8f4de

Please sign in to comment.