diff --git a/custom_components/foxess_em/fox/fox_api.py b/custom_components/foxess_em/fox/fox_api.py index 9a011d9..c67e9ec 100755 --- a/custom_components/foxess_em/fox/fox_api.py +++ b/custom_components/foxess_em/fox/fox_api.py @@ -56,7 +56,7 @@ async def _post_data(self, url: str, params: dict[str, str]) -> dict: url, json=params, headers=self._token ) except Exception as ex: - _LOGGER.error("Fox Cloud API error: %s", ex) + raise NoDataError(f"Fox Cloud API error: {ex}") if response.status == 200: result = await response.json(content_type=None)