Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sonarr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class Application:
def __init__(self, data: dict):
"""Initialize an empty Sonarr application class."""
# Check if all elements are in the passed dict, else raise an Error
if any(k not in data for k in ["info", "diskspace"]):
if any(k not in data for k in ["info"]):
raise SonarrError("Sonarr data is incomplete, cannot construct object")
self.update_from_dict(data)

Expand Down
2 changes: 0 additions & 2 deletions sonarr/sonarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ async def update(self, full_update: bool = False) -> Application:
raise SonarrError("Sonarr returned an empty API status response")

diskspace = await self._request("diskspace")
if not diskspace or diskspace is None:
raise SonarrError("Sonarr returned an empty API diskspace response")

self._application = Application({"info": status, "diskspace": diskspace})
return self._application
Expand Down