Merge pull request #663 from Philoul/Fix_Automation_regression

Fix Automation regression (Add missing return)
This commit is contained in:
Milos Kozak 2021-09-06 10:27:59 +02:00 committed by GitHub
commit 379ed6dca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,