codingcyclist / ha_strava

Pipe your Activity Data from Strava directly into Home Assistant
MIT License
76 stars 29 forks source link

adopts removal of hass.const.HTTP_* #36

Closed thoemmi closed 1 year ago

thoemmi commented 2 years ago

With Home Assistant 2021.12, the const.HTTP_* status constants were removed, see https://github.com/home-assistant/core/pull/58380.

This PR replaces these constants with HTTPStatus.

This fixes #35

brewston commented 2 years ago

Nice fix, I ran into this today and ended up hardcoding HTTP_OK to "200" which seemed to get the integration working again.

mozdi commented 2 years ago

With Home Assistant 2021.12, the const.HTTP_* status constants were removed, see home-assistant/core#58380.

This PR replaces these constants with HTTPStatus.

This fixes #35

Thank you, that solved the issue for me and works great1 :)

CumpsD commented 2 years ago

Thanks, fixed it for me too