Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcherubini committed Feb 8, 2025
1 parent ab54d0b commit 74f324a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,12 @@ const definitions: DefinitionWithExtend[] = [
toZigbee: [],
exposes: (device, options) => {
const exps: Expose[] = [e.temperature(), e.humidity(), e.battery()];
if (!device || device.manufacturerName === '_TZE200_qyflbnbj' || device.manufacturerName === '_TZE204_qyflbnbj' || device.manufacturerName === '_TZE284_qyflbnbj') {
if (
!device ||
device.manufacturerName === '_TZE200_qyflbnbj' ||
device.manufacturerName === '_TZE204_qyflbnbj' ||
device.manufacturerName === '_TZE284_qyflbnbj'
) {
exps.push(e.battery_low());
exps.push(e.enum('battery_level', ea.STATE, ['low', 'middle', 'high']).withDescription('Battery level state'));
}
Expand Down

0 comments on commit 74f324a

Please sign in to comment.