ui: show all host choices

This commit is contained in:
Peter F. Patel-Schneider 2020-09-21 08:54:58 -04:00
parent b1706fa9e2
commit dca6b4ba38
1 changed files with 2 additions and 3 deletions

View File

@ -477,9 +477,8 @@ def _feature_change_host_callback(device):
choices = _NamedInts()
for host in range(0, numHosts):
paired, hostName = hostNames.get(host, (True, ''))
if paired:
choices[host] = str(host + 1) + ':' + hostName if hostName else str(host + 1)
return _ChoicesV(choices, read_skip_byte_count=1) if choices else None
choices[host] = str(host + 1) + ':' + hostName if hostName else str(host + 1)
return _ChoicesV(choices, read_skip_byte_count=1) if choices and len(choices) > 1 else None
def _feature_change_host():