From 9a739d0f015b08e71f755e95b4aa42e583dadad2 Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Thu, 21 Apr 2022 21:56:17 +0200 Subject: [PATCH] Add more errors (#240) 950: NotConnected, # Hardware is not connected 951: BridgeBusy, # May occur when sending too fast --- pydeconz/errors.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pydeconz/errors.py b/pydeconz/errors.py index 8ddd1de0..05c5a376 100644 --- a/pydeconz/errors.py +++ b/pydeconz/errors.py @@ -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. @@ -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 }