Merge pull request #305 from balloob/dev

Super small hotfix
This commit is contained in:
Paulus Schoutsen 2015-09-01 01:15:24 -07:00
commit ddeccf13af
2 changed files with 6 additions and 2 deletions

View File

@ -82,7 +82,11 @@ class HomeAssistant(object):
DOMAIN, SERVICE_HOMEASSISTANT_STOP, stop_homeassistant)
if os.name != "nt":
signal.signal(signal.SIGQUIT, stop_homeassistant)
try:
signal.signal(signal.SIGQUIT, stop_homeassistant)
except ValueError:
_LOGGER.warning(
'Could not bind to SIGQUIT. Are you running in a thread?')
while not request_shutdown.isSet():
try:

View File

@ -9,7 +9,7 @@ with open(os.path.join(HERE, PACKAGE_NAME, 'const.py')) as fp:
DOWNLOAD_URL = \
'https://github.com/balloob/home-assistant/archive/{}.zip'.format(VERSION)
PACKAGES = find_packages() + \
PACKAGES = find_packages(exclude=['tests', 'tests.*']) + \
['homeassistant.external', 'homeassistant.external.noop',
'homeassistant.external.nzbclients', 'homeassistant.external.vera']