Skip to content

Commit 14f059c

Browse files
jvits227joostlek
authored andcommitted
Add lamp states to smartthings selector (home-assistant#148302)
Co-authored-by: Joostlek <[email protected]>
1 parent 4a10370 commit 14f059c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

homeassistant/components/smartthings/select.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
LAMP_TO_HA = {
2020
"extraHigh": "extra_high",
21+
"high": "high",
22+
"mid": "mid",
23+
"low": "low",
24+
"on": "on",
25+
"off": "off",
2126
}
2227

2328
WASHER_SOIL_LEVEL_TO_HA = {

tests/components/smartthings/snapshots/test_select.ambr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'last_changed': <ANY>,
5656
'last_reported': <ANY>,
5757
'last_updated': <ANY>,
58-
'state': 'unknown',
58+
'state': 'off',
5959
})
6060
# ---
6161
# name: test_all_entities[da_ks_oven_01061][select.oven_lamp-entry]
@@ -112,7 +112,7 @@
112112
'last_changed': <ANY>,
113113
'last_reported': <ANY>,
114114
'last_updated': <ANY>,
115-
'state': 'unknown',
115+
'state': 'high',
116116
})
117117
# ---
118118
# name: test_all_entities[da_ks_range_0101x][select.vulcan_lamp-entry]

0 commit comments

Comments
 (0)