The integration currently loads the data whenever HomeAssistant "wakes" it (note: need to investigate how often is it exactly). Given that the data should only need to be loaded once a day, it would make more sense to cache it and maybe just update it once in a while (once every hour maybe? Or is there no chance that the data will change during the day?)
Another problem is that the integration doesn't report anything when ote-cr.cz is down. It should be easy to fix it so it returns cached value. The cached value should also survive HA restart.
I've rewritten the data fetching to use data coordinator, so it should only update once every hour and should be cached when next update fails for some reason.
The integration currently loads the data whenever HomeAssistant "wakes" it (note: need to investigate how often is it exactly). Given that the data should only need to be loaded once a day, it would make more sense to cache it and maybe just update it once in a while (once every hour maybe? Or is there no chance that the data will change during the day?)
Another problem is that the integration doesn't report anything when ote-cr.cz is down. It should be easy to fix it so it returns cached value. The cached value should also survive HA restart.