Repository navigation
Commit ca34471
docs(octopus): explain why a Smart Control change is always sent, and count four car entities (#5341 review)
The switch handler sends SUSPEND/UNSUSPEND even when the switch already
shows that state: the cached device state can be up to a poll old, so
skipping the call could drop a real change made in the Octopus app just
before. The build_discovery docstring now lists four car entities, and a
leftover smart_control_confirmed line is removed from the test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 1ec5f67 commit ca34471
2 files changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1230 | 1230 | | |
1231 | 1231 | | |
1232 | 1232 | | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
1233 | 1236 | | |
1234 | 1237 | | |
1235 | 1238 | | |
| |||
1653 | 1656 | | |
1654 | 1657 | | |
1655 | 1658 | | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1659 | 1662 | | |
1660 | 1663 | | |
1661 | 1664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
| |||
0 commit comments