When host is added via autodiscovery and $config['mydomain'] variable is empty, an additional '.' is added to the end of hostname. This can cause host to be added multiple times via autodiscovery: with and without trailing '.'
Do not add empty $config['mydomain'] when autodiscovering
When \$config['mydomain'] variable is empty, '.' is appended to
the device hostname. This patch adds a check to prevent that."
This is correct. 👍