Commit 577fa80
committed
Use async_update to set horizontal swing as supported
Reimplement async_update in AtaDeviceClimate (from MelCloudClimate)
so that when the device information is obtained from the cloud, we
check if the device has horizontal vanes to mark SWING_HORIZONTAL_MODE
as a supported feature.
Note that we can't just check for self._device.vane_horizontal in
__init__ since vane_horizontal is only set (or not) after the device
data is fetched from the cloud.1 parent 806ef64 commit 577fa80
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
165 | | - | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
| |||
0 commit comments