Catch device not found in device automations (#31401)

This commit is contained in:
Paulus Schoutsen 2020-02-02 07:13:07 -08:00 committed by GitHub
parent 55aa341dab
commit 7127310f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 1 deletions

View file

@ -4,3 +4,7 @@ from homeassistant.exceptions import HomeAssistantError
class InvalidDeviceAutomationConfig(HomeAssistantError):
"""When device automation config is invalid."""
class DeviceNotFound(HomeAssistantError):
"""When referenced device not found."""