1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-11-18 10:03:41 -05:00

Add ability to reconfigure integration to handle updated host ip

This commit is contained in:
Nathan Spencer
2024-07-11 11:51:23 -06:00
parent 9b85d939c4
commit cda435070d
4 changed files with 52 additions and 20 deletions

View File

@@ -237,7 +237,7 @@ class OasisMini:
async def _async_get(self, **kwargs: Any) -> str | None:
"""Perform a GET request."""
response = await self._session.get(self.url, **kwargs)
if response.status == 200:
if response.status == 200 and response.content_type == "text/plain":
text = await response.text()
return text
return None