mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Merge pull request #1596 from jaharkes/lms-avoid-discovery-error
Assume we only run one Logitech Media server on a host.
This commit is contained in:
commit
890930ea32
@ -42,9 +42,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
return False
|
||||
|
||||
# Only add a media server once
|
||||
if (host, port) in KNOWN_DEVICES:
|
||||
if host in KNOWN_DEVICES:
|
||||
return False
|
||||
KNOWN_DEVICES.append((host, port))
|
||||
KNOWN_DEVICES.append(host)
|
||||
|
||||
lms = LogitechMediaServer(
|
||||
host, port,
|
||||
|
Loading…
x
Reference in New Issue
Block a user