hide light sensor option when no light sensor
All checks were successful
/ build (push) Successful in 3m39s
/ check-changes (push) Successful in 6s

This commit is contained in:
Djuri 2025-01-16 00:29:45 +01:00
parent 993bb45d0d
commit 68207a7d95
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1

View file

@ -190,12 +190,14 @@
size={$uiSettings.inputSize}
/>
<SettingsSwitch
id="flOffWhenDark"
bind:checked={$settings.flOffWhenDark}
label={$_('section.settings.flOffWhenDark')}
size={$uiSettings.inputSize}
/>
{#if $settings.hasLightLevel}
<SettingsSwitch
id="flOffWhenDark"
bind:checked={$settings.flOffWhenDark}
label={$_('section.settings.flOffWhenDark')}
size={$uiSettings.inputSize}
/>
{/if}
{/if}
</Row>
</ToggleHeader>