Skip to content

Commit

Permalink
fix: Remove unsupported on_time/off_wait_time from light converter
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jan 20, 2025
1 parent 15f15aa commit 099ea3a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion src/converters/toZigbee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ const converters2 = {
},
} satisfies Tz.Converter,
light_onoff_brightness: {
key: ['state', 'brightness', 'brightness_percent', 'on_time', 'off_wait_time'],
key: ['state', 'brightness', 'brightness_percent'],
options: [exposes.options.transition()],
convertSet: async (entity, key, value, meta) => {
const {message} = meta;
Expand Down
6 changes: 0 additions & 6 deletions test/generateDefinition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ module.exports = definition;
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down Expand Up @@ -292,8 +290,6 @@ module.exports = definition;
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down Expand Up @@ -366,8 +362,6 @@ module.exports = definition;
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down
12 changes: 0 additions & 12 deletions test/modernExtend.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ describe('ModernExtend', () => {
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down Expand Up @@ -45,8 +43,6 @@ describe('ModernExtend', () => {
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down Expand Up @@ -88,8 +84,6 @@ describe('ModernExtend', () => {
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down Expand Up @@ -135,8 +129,6 @@ describe('ModernExtend', () => {
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down Expand Up @@ -237,8 +229,6 @@ describe('ModernExtend', () => {
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down Expand Up @@ -304,8 +294,6 @@ describe('ModernExtend', () => {
'state',
'brightness',
'brightness_percent',
'on_time',
'off_wait_time',
'transition',
'level_config',
'rate',
Expand Down

0 comments on commit 099ea3a

Please sign in to comment.