first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""Errors for Yandex Smart Home."""
|
||||
|
||||
|
||||
class SmartHomeError(Exception):
|
||||
"""Yandex Smart Home errors.
|
||||
|
||||
https://yandex.ru/dev/dialogs/alice/doc/smart-home/concepts/response-codes-docpage/
|
||||
"""
|
||||
|
||||
def __init__(self, code, msg):
|
||||
"""Log error code."""
|
||||
super().__init__(msg)
|
||||
self.code = code
|
||||
self.message = msg
|
||||
Reference in New Issue
Block a user