Added socket as posible device

This commit is contained in:
MacSchlack
2022-04-14 16:11:56 +02:00
committed by GitHub
parent 4c8f4b07fb
commit c53687c0a9

View File

@@ -302,9 +302,10 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
var iconColor = rgb_dec565(config.defaultColor);
switch (o.common.role) {
case "socket":
case "light":
type = "light"
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : Icons.GetIcon("lightbulb");
iconId = pageItem.icon !== undefined ? Icons.GetIcon(pageItem.icon) : o.common.role == "socket" ? Icons.GetIcon("power-socket-de") : Icons.GetIcon("lightbulb");
var optVal = "0"
if (val === true || val === "true") {