mirror of
https://github.com/home-assistant/android
synced 2024-09-06 17:23:32 +00:00
Only add next subscription if control is not null (#2812)
* Only add next subscription if control is not null * Add one more null check for control
This commit is contained in:
parent
cfafffd27f
commit
6e647cb436
|
@ -165,7 +165,8 @@ class HaControlsProviderService : ControlsProviderService() {
|
|||
RegistriesDataHandler.getAreaForEntity(it.entityId, areaRegistry, deviceRegistry, entityRegistry),
|
||||
baseUrl
|
||||
)
|
||||
subscriber.onNext(control)
|
||||
if (control != null)
|
||||
subscriber.onNext(control)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -254,7 +255,8 @@ class HaControlsProviderService : ControlsProviderService() {
|
|||
baseUrl
|
||||
)
|
||||
}
|
||||
subscriber.onNext(control)
|
||||
if (control != null)
|
||||
subscriber.onNext(control)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue