home-assistant / home-assistant/android
Make ServerConnectionStateProviderImpl more efficient
Open
enhancement
- Dominant language
- Kotlin
- Stars
- 3.9k
- Forks
- 1.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 81
Description
### Description
Today each time we subscribe to the `urlFlow` it does subscribe to multiple sources. This sources are always the same for a given server or for network for all servers.
We could make sure that if `urlFlow` is invoked from multiple places we share the same sources to avoid registering multiple times.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.