Fix #13846 Double underscore in bluetooth address (#13884)

This commit is contained in:
Kyle Niewiada 2018-04-15 07:59:10 -04:00 committed by Johann Kellerman
parent 390086bb7e
commit 2bff03836b

View File

@ -40,7 +40,7 @@ def setup_scanner(hass, config, see, discovery_info=None):
attributes = {}
if rssi is not None:
attributes['rssi'] = rssi
see(mac="{}_{}".format(BT_PREFIX, mac), host_name=name,
see(mac="{}{}".format(BT_PREFIX, mac), host_name=name,
attributes=attributes, source_type=SOURCE_TYPE_BLUETOOTH)
def discover_devices():