Many changes to cleanup config directory and lib installations.
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.
This commit is contained in:
parent
18e32165a4
commit
6fdf9b8d7c
7 changed files with 53 additions and 150 deletions
15
homeassistant/exceptions.py
Normal file
15
homeassistant/exceptions.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
""" 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
|
Loading…
Add table
Add a link
Reference in a new issue