Commit b176a8d
Fix power-on key None guard in fan base class (#553)
When neither POWERON_KEY nor FANON_KEY is in the initial state,
_power_on_key was set to None. This caused _send_command(None, value)
in the is_on setter. Now preserves existing key or defaults to
POWERON_KEY, and adds a guard in the setter.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent e10f177 commit b176a8d
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
349 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
350 | 355 | | |
351 | 356 | | |
352 | 357 | | |
| |||
0 commit comments