Commit 76f8e05
committed
Guard climate_settings=None on the control path too
Addresses review feedback on #309: _create_climate_settings accessed
self.vehicle.climate_settings.operations directly, which AttributeErrors when
climate_settings itself is None (full climate-settings 500), crashing the
entity on a set-temperature/defrost action. getattr through both.1 parent 900b92e commit 76f8e05
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
0 commit comments