Skip to content

Commit 62859a4

Browse files
committed
fix: raise HomeAssistantError when prepararing devices
1 parent 1c98bb7 commit 62859a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/winix/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from winix import WinixAccount, auth
1616

1717
from homeassistant.core import HomeAssistant
18+
from homeassistant.exceptions import HomeAssistantError
1819

1920
from .const import (
2021
DEFAULT_FILTER_ALARM_DURATION,
@@ -324,7 +325,7 @@ async def get_device_stubs(
324325
]
325326

326327

327-
class WinixException(Exception):
328+
class WinixException(HomeAssistantError):
328329
"""Wiinx related operation exception."""
329330

330331
result_code: str = ""

0 commit comments

Comments
 (0)