mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-21 14:23:06 +01:00
DVCSMP-2325 - Remove parse method from simulated Switch
sin string
This commit is contained in:
@@ -39,9 +39,7 @@ metadata {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def parse(String description) {
|
def parse(description) {
|
||||||
def pair = description.split(":")
|
|
||||||
createEvent(name: pair[0].trim(), value: pair[1].trim())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def on() {
|
def on() {
|
||||||
|
|||||||
Reference in New Issue
Block a user