Fix Automation regression (Add missing return)

This commit is contained in:
Philoul 2021-09-04 23:59:45 +02:00
parent ba4a8f3a1d
commit 2fafa78f56

View file

@ -48,7 +48,7 @@ abstract class Action(val injector: HasAndroidInjector) {
try {
val type = obj.getString("type")
val data = obj.getJSONObject("data")
when (type) {
return when (type) {
ActionAlarm::class.java.name, // backward compatibility
ActionAlarm::class.java.simpleName -> ActionAlarm(injector).fromJSON(data.toString())
ActionDummy::class.java.name,