Skip to content

Commit

Permalink
Add more errors (#240)
Browse files Browse the repository at this point in the history
950: NotConnected,  # Hardware is not connected
951: BridgeBusy,  # May occur when sending too fast
  • Loading branch information
Kane610 authored Apr 21, 2022
1 parent d5cabaf commit 9a739d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pydeconz/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class LinkButtonNotPressed(pydeconzException):
"""The Link button has not been pressed."""


class NotConnected(pydeconzException):
"""The Hardware is not connected."""


class RequestError(pydeconzException):
"""Unable to fulfill request.
Expand Down Expand Up @@ -57,6 +61,8 @@ class Unauthorized(pydeconzException):
8: RequestError, # Parameter is not modifiable
101: LinkButtonNotPressed, # Link button not pressed
901: BridgeBusy, # May occur when sending too fast
950: NotConnected, # Hardware is not connected
951: BridgeBusy, # May occur when sending too fast
}


Expand Down

0 comments on commit 9a739d0

Please sign in to comment.