megakid / ha_octopus_intelligent

Apache License 2.0
86 stars 10 forks source link

Unavailable sensor fix #33

Closed djbadders closed 5 months ago

djbadders commented 5 months ago

I found the issue causing the sensors to become unavailable was due to some very choppy performance with the Octopus APIs moving form a call time of 1-3 seconds to 30 seconds or greater at times. This longer call duration then exceeded to timeout that was defined for the HA poll of 30 secs and therefore left the sensors unavailable. Fix is simple increase HA async task timeout to 60 seconds. Also changed the polling to every 2 mins and all is good.

megakid commented 5 months ago

I've just updated the timeout value and published a new release. Thanks