mathieu-mp / homeassistant-intex-spa

Home Assistant integration for Intex Spa
https://github.com/mathieu-mp/homeassistant-intex-spa
MIT License
32 stars 6 forks source link

Catch exception when status cannot be read by coordinator #13

Closed mathieu-mp closed 2 years ago

mathieu-mp commented 2 years ago

Catch exception when status cannot be read by coordinator... ...and do something clever !

Original post from @Elkropac: I was trying to figure out, what is returned in status, when you cannot connect to SPA and if it needs to be handled in some update method instead of blindly updating status of coordinator data

Originally posted by @Elkropac in https://github.com/mathieu-mp/homeassistant-intex-spa/issues/10#issuecomment-1160687376

mathieu-mp commented 2 years ago

Linked to Intex Spa python package issue #8

mathieu-mp commented 2 years ago

It should do the job, don't hesitate to reopen if needed