diff --git a/homeassistant/components/http.py b/homeassistant/components/http.py index 90d43d38818..88ac58cc879 100644 --- a/homeassistant/components/http.py +++ b/homeassistant/components/http.py @@ -74,7 +74,8 @@ def setup(hass, config): hass.bus.listen_once( ha.EVENT_HOMEASSISTANT_START, lambda event: - threading.Thread(target=server.start, daemon=True).start()) + threading.Thread(target=server.start, daemon=True, + name='HTTP-server').start()) hass.http = server hass.config.api = rem.API(util.get_local_ip(), api_password, server_port, diff --git a/homeassistant/core.py b/homeassistant/core.py index a0d63d16018..f9333594c0e 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -775,7 +775,7 @@ def create_timer(hass, interval=TIMER_INTERVAL): def start_timer(event): """Start the timer.""" - thread = threading.Thread(target=timer) + thread = threading.Thread(target=timer, name='Timer') thread.daemon = True thread.start() diff --git a/homeassistant/util/__init__.py b/homeassistant/util/__init__.py index 975dce4c9df..190f6ad340a 100644 --- a/homeassistant/util/__init__.py +++ b/homeassistant/util/__init__.py @@ -331,7 +331,9 @@ class ThreadPool(object): if not self.running: raise RuntimeError("ThreadPool not running") - worker = threading.Thread(target=self._worker) + worker = threading.Thread( + target=self._worker, + name='ThreadPool Worker {}'.format(self.worker_count)) worker.daemon = True worker.start()