mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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.
This commit is contained in:
parent
05978ad88d
commit
6a021c9ef6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user