Google assistant skip missing type (#23174)
* Skip entity if no device type found * Add test for potentially skipped binary sensors * Reorg code, add tests to ensure all exposed things have types * Lint * Fix tests * Lint
This commit is contained in:
1 parent
ce8ec3acb1
commit
4a2a130bfa
9 files changed
+285
-240
No files matched your search
@@ -0,0 +1,13 @@
|
||||
"""Errors for Google Assistant."""
|
||||
|
||||
|
||||
class SmartHomeError(Exception):
|
||||
"""Google Assistant Smart Home errors.
|
||||
|
||||
https://developers.google.com/actions/smarthome/create-app#error_responses
|
||||
"""
|
||||
|
||||
def __init__(self, code, msg):
|
||||
"""Log error code."""
|
||||
super().__init__(msg)
|
||||
self.code = code
|
||||
Reference in new issue
Block a user