Skip to content

Commit 6e1c88f

Browse files
[autofix.ci] apply automated fixes
1 parent c21add6 commit 6e1c88f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/tuya.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,13 +3315,13 @@ const tuyaTz = {
33153315
return await tz.on_off.convertSet(entity, key, value, meta);
33163316
}
33173317
if (message.brightness != null) {
3318-
// If state includes state_l1 assume we need to use a custom lookup
3318+
// If state includes state_l1 assume we need to use a custom lookup
33193319
const stateKey = Object.keys(state).find((k) => k.startsWith("state_l1")) ? `state_l${entity.ID}` : "state";
33203320
// turn on
33213321
if (state[stateKey] === "OFF") {
33223322
await entity.command("genOnOff", "on", {}, utils.getOptions(meta.mapped, entity));
33233323
}
3324-
3324+
33253325
const brightness = utils.toNumber(message.brightness, "brightness");
33263326

33273327
const level = utils.mapNumberRange(brightness, 0, 254, 0, 1000);

0 commit comments

Comments
 (0)