New languages - Danish & Hungarian (#1376)

* New languages, Danish and Hungarian

* Yeelight Wizard - Ensure correct hostname
This commit is contained in:
LordGrey
2021-11-18 20:48:11 +00:00
committed by GitHub
parent ac941aebe1
commit d395e0a3b1
6 changed files with 143 additions and 2 deletions

View File

@@ -1483,7 +1483,15 @@ async function discover_yeelight_lights() {
if (device.hostname !== "") {
if (getHostInLights(device.hostname).length === 0) {
var light = {};
light.host = device.hostname;
//Create a valid hostname
if (device.domain)
{
light.host += '.' + device.domain;
}
light.port = device.port;
if (device.txt) {