Add mysensors device tracker and platform discovery (#5781)
* Add mysensors device_tracker platform * Add discovery of device_tracker platforms * Enable discovery of device_tracker platforms that are not DeviceScanner. * Update signature of setup_scanner function in all affected platforms. * Add test. * Use discovery for mysensors device_tracker platform. * Remove gps accuracy * Small change to core like schema * fix depency
This commit is contained in:
parent
c7fd28c10f
commit
45a7c27280
17 changed files with 104 additions and 15 deletions
|
@ -73,7 +73,7 @@ class Host:
|
|||
_LOGGER.debug("ping KO on ip=%s failed=%d", self.ip_address, failed)
|
||||
|
||||
|
||||
def setup_scanner(hass, config, see):
|
||||
def setup_scanner(hass, config, see, discovery_info=None):
|
||||
"""Setup the Host objects and return the update function."""
|
||||
hosts = [Host(ip, dev_id, hass, config) for (dev_id, ip) in
|
||||
config[const.CONF_HOSTS].items()]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue