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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue