mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 19:27:51 +00:00

Cleaned up default config directory determination. Made bootstrap creators for HA always set config directory. Made bootstrap creators set the local library in the Python Path. Moved all exceptions to their own file to make imports easier. Moved default configuration directory be in the users’ profile. Moved pip installs to be done to a lib folder in the config directory. Reduced requirements.txt to only the barebones reqs.
16 lines
369 B
Python
16 lines
369 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
|