mirror of
https://github.com/home-assistant/android
synced 2024-09-06 09:13:57 +00:00
Only collect the entity flow if we are not null (#2156)
* Only collect the entity flow if we are not null * Use safe call instead of null check
This commit is contained in:
parent
69ccb1ef34
commit
c09fa8d2a3
|
@ -76,7 +76,7 @@ abstract class BaseWidgetProvider : AppWidgetProvider() {
|
|||
updateAllWidgets(context)
|
||||
if (getAllWidgetIds(context).isNotEmpty()) {
|
||||
entityUpdates = integrationUseCase.getEntityUpdates()
|
||||
entityUpdates!!.collect {
|
||||
entityUpdates?.collect {
|
||||
onEntityStateChanged(context, it)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue