Commit 7ff586d
committed
fix: unload switch platform on reload
async_unload_entry was reading entry_data["loaded_platforms"], a key
that is never written, so it always passed an empty set to
async_unload_platforms. The switch platform was never torn down, and
the next async_setup_entry (options save, reload) raised
"Config entry ... for unifi_network_rules.switch has already been setup!"
Use PLATFORMS directly to mirror async_forward_entry_setups in setup.
Bumps version to 4.4.2.1 parent 3fdfdff commit 7ff586d
2 files changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | 232 | | |
234 | 233 | | |
235 | | - | |
236 | 234 | | |
237 | | - | |
| 235 | + | |
238 | 236 | | |
239 | 237 | | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | | - | |
246 | 243 | | |
247 | | - | |
| 244 | + | |
248 | 245 | | |
249 | | - | |
| 246 | + | |
250 | 247 | | |
251 | 248 | | |
252 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
0 commit comments