mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix number of times seen in debug message (#30429)
This commit is contained in:
parent
f5aa89dd06
commit
c130e81638
@ -46,8 +46,8 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
||||
"""Mark a device as seen."""
|
||||
if new_device:
|
||||
if address in new_devices:
|
||||
_LOGGER.debug("Seen %s %s times", address, new_devices[address])
|
||||
new_devices[address] += 1
|
||||
_LOGGER.debug("Seen %s %s times", address, new_devices[address])
|
||||
if new_devices[address] >= MIN_SEEN_NEW:
|
||||
_LOGGER.debug("Adding %s to tracked devices", address)
|
||||
devs_to_track.append(address)
|
||||
|
Loading…
x
Reference in New Issue
Block a user