jaydeethree / Home-Assistant-weatherdotcom

Home Assistant custom component/integration for Weather.com
GNU General Public License v3.0
35 stars 5 forks source link

Forecast API is no longer working #12

Closed jaydeethree closed 9 months ago

jaydeethree commented 9 months ago

Creating a bug to track this - about 9 hours ago the forecast API used by this integration stopped working. From quickly looking at this I believe it's a MIME type issue, as the forecast API now returns a content type of application/octet-stream instead of application/json; charset=UTF-8. It's unclear if this change is intentional or not, but my guess is that it was done on accident and will be fixed eventually.

jaydeethree commented 9 months ago

This looks promising:

https://docs.aiohttp.org/en/stable/client_advanced.html#disabling-content-type-validation-for-json-responses

jaydeethree commented 9 months ago

This should be fixed by https://github.com/jaydeethree/Home-Assistant-weatherdotcom/commit/e9f846fea0dd1b07418ddc9417dd32b123f92ef2 and version 1.0.8.