mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
add comment
This commit is contained in:
parent
71cd8f7385
commit
355f88bf8f
1 changed files with 2 additions and 0 deletions
|
|
@ -173,6 +173,8 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
if attr is not None and attr != "none":
|
||||
setattr(self, name, validate(attr))
|
||||
elif attr == "none":
|
||||
# FIX: Can't use `None` in OptionsFlow. For reasons I do
|
||||
# not understand, I cannot save an option that is empty.
|
||||
setattr(self, name, None)
|
||||
|
||||
# Initialize attributes that will be set in self._update_attrs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue