Fix Automation regression (Add missing return)
This commit is contained in:
parent
ba4a8f3a1d
commit
2fafa78f56
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ abstract class Action(val injector: HasAndroidInjector) {
|
||||||
try {
|
try {
|
||||||
val type = obj.getString("type")
|
val type = obj.getString("type")
|
||||||
val data = obj.getJSONObject("data")
|
val data = obj.getJSONObject("data")
|
||||||
when (type) {
|
return when (type) {
|
||||||
ActionAlarm::class.java.name, // backward compatibility
|
ActionAlarm::class.java.name, // backward compatibility
|
||||||
ActionAlarm::class.java.simpleName -> ActionAlarm(injector).fromJSON(data.toString())
|
ActionAlarm::class.java.simpleName -> ActionAlarm(injector).fromJSON(data.toString())
|
||||||
ActionDummy::class.java.name,
|
ActionDummy::class.java.name,
|
||||||
|
|
Loading…
Reference in a new issue