bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
898 stars 250 forks source link

Implement cache invalidation #2200

Closed bramstroker closed 2 months ago

bramstroker commented 2 months ago

Whenever a new profile is submitted to the library or a profile update we need to make sure all caches are correctly invalidated.

Both library endpoint and download/{manufacturer}/{model} endpoint.

Cloudflare

https://developers.cloudflare.com/api/operations/zone-purge#purge-cached-content-by-url

bramstroker commented 2 months ago

Done