From 6a021c9ef66654c0154f0c030368ee9e367e641e Mon Sep 17 00:00:00 2001 From: Johan Carlquist Date: Sat, 28 Nov 2015 20:43:27 +0100 Subject: [PATCH] Support for legacy nmap. Older nmap like the one bundled with Ubuntu Precise (12.04), 5.21 requires that you specify what unit the value to --host-timeout is. --- homeassistant/components/device_tracker/nmap_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/nmap_tracker.py b/homeassistant/components/device_tracker/nmap_tracker.py index 1e45444c74e..bc8e8768be0 100644 --- a/homeassistant/components/device_tracker/nmap_tracker.py +++ b/homeassistant/components/device_tracker/nmap_tracker.py @@ -98,7 +98,7 @@ class NmapDeviceScanner(object): from nmap import PortScanner, PortScannerError scanner = PortScanner() - options = "-F --host-timeout 5" + options = "-F --host-timeout 5s" if self.home_interval: boundary = dt_util.now() - self.home_interval