Skip to content

Commit

Permalink
Remove check of HTTP_NO_CONTENT as there are no 'No Content' replies …
Browse files Browse the repository at this point in the history
…in v1 (#469)
  • Loading branch information
DCSBL authored Jan 5, 2025
1 parent 8baaefe commit 9767ff9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions homewizard_energy/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ async def _request(
raise DisabledError(
"API disabled. API must be enabled in HomeWizard Energy app"
)
case HTTPStatus.NO_CONTENT:
# No content, just return
return (HTTPStatus.NO_CONTENT, None)
case HTTPStatus.NOT_FOUND:
raise NotFoundError("Resource not found")
case HTTPStatus.OK:
Expand Down

0 comments on commit 9767ff9

Please sign in to comment.