Skip to content

Commit 79d2c0b

Browse files
authored
Merge pull request #33 from uvjustin/support-restricted-accounts
Support restricted accounts
2 parents e3d9678 + 90908ea commit 79d2c0b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

pyalarmdotcomajax/__init__.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
UnsupportedDevice,
2828
)
2929

30-
__version__ = "0.2.0-beta.6"
30+
__version__ = "0.2.0-beta.7"
3131

3232

3333
log = logging.getLogger(__name__)
@@ -102,12 +102,6 @@ def __init__(
102102
self.locks: list[ADCLock] = []
103103
self.garage_doors: list[ADCGarageDoor] = []
104104

105-
self._init_hook()
106-
107-
def _init_hook(self) -> None:
108-
"""Let child classes do things during init without overriding the whole function."""
109-
pass
110-
111105
#
112106
#
113107
##############
@@ -566,7 +560,8 @@ async def _async_get_items_and_subordinates(
566560
device_type,
567561
device_type,
568562
)
569-
raise DeviceTypeNotAuthorized
563+
# Carry on. We'll still try to load all other devices to which a user has access.
564+
return []
570565

571566
if rsp_errors[0].get("status") == "403":
572567
# This could mean that we're logged out. Try logging in once, then assume bad credentials or some other issue.

0 commit comments

Comments
 (0)