mirror of
https://github.com/home-assistant/core.git
synced 2026-05-26 18:26:25 +01:00
f5b98c86f0
Rewrote imports of exceptions to be from the exceptions module. Made nmap scanner check for libnmap dependency without crashing. Various flake8 and pylint updates.
17 lines
370 B
Python
17 lines
370 B
Python
""" Exceptions used by Home Assistant """
|
|
|
|
|
|
class HomeAssistantError(Exception):
|
|
""" General Home Assistant exception occured. """
|
|
pass
|
|
|
|
|
|
class InvalidEntityFormatError(HomeAssistantError):
|
|
""" When an invalid formatted entity is encountered. """
|
|
pass
|
|
|
|
|
|
class NoEntitySpecifiedError(HomeAssistantError):
|
|
""" When no entity is specified. """
|
|
pass
|