home-assistant / home-assistant/android

Make ServerConnectionStateProviderImpl more efficient

Open
#6,147 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.