Skip to content

Commit

Permalink
(simatec) small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simatec committed Aug 8, 2024
1 parent d003a9f commit e1e29a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sunProtect.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ async function sunProtect(adapter, elevation, azimuth, shutterSettings) {
_triggerState = shutterSettings[s].triggerID != '' ? await adapter.getForeignStateAsync(shutterSettings[s].triggerID).catch((e) => adapter.log.warn(e)) : null;
mustValue = ('' + shutterSettings[s].triggerState);
mustValueTilted = shutterSettings[s].triggerStateTilted == 'none' ? ('' + shutterSettings[s].triggerState) : ('' + shutterSettings[s].triggerStateTilted);
currentValue = _triggerState?.val ? ('' + _triggerState.val) : '';
currentValue = _triggerState?.val !== null && _triggerState?.val !== undefined ? ('' + _triggerState.val) : '';

adapter.log.warn(`mustValue for ${shutterSettings[s].shutterName}: ${mustValue}`);
adapter.log.warn(`mustValueTilted for ${shutterSettings[s].shutterName}: ${mustValueTilted}`);
Expand Down

0 comments on commit e1e29a5

Please sign in to comment.