* 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
13 lines
322 B
Python
13 lines
322 B
Python
"""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
|