mirror of
https://github.com/home-assistant/android
synced 2024-10-02 22:34:46 +00:00
Fix default icon for shortcut tile (#1951)
This commit is contained in:
parent
50687f82c7
commit
65d6d7d270
|
@ -98,7 +98,7 @@ class ShortcutsTile : TileService() {
|
|||
val iconName: String = if (entity.icon.startsWith("mdi")) {
|
||||
entity.icon.split(":")[1]
|
||||
} else { // Default scene icon
|
||||
when (entity.entityId.split(":")[1]) {
|
||||
when (entity.entityId.split(".")[0]) {
|
||||
"input_boolean", "switch" -> "light_switch"
|
||||
"light" -> "lightbulb"
|
||||
"script" -> "script_text_outline"
|
||||
|
|
Loading…
Reference in a new issue