mirror of
https://github.com/home-assistant/android
synced 2024-10-15 12:32:54 +00:00
Don't check Wifi SSID when home wifi list is empty (#3025)
This commit is contained in:
parent
9eac506105
commit
3afc5d4d55
|
@ -152,9 +152,11 @@ class UrlRepositoryImpl @Inject constructor(
|
|||
}
|
||||
|
||||
override suspend fun isHomeWifiSsid(): Boolean {
|
||||
val wifiSsids = getHomeWifiSsids()
|
||||
if (wifiSsids.isEmpty())
|
||||
return false
|
||||
val formattedSsid = wifiHelper.getWifiSsid()?.removeSurrounding("\"")
|
||||
val formattedBssid = wifiHelper.getWifiBssid()
|
||||
val wifiSsids = getHomeWifiSsids()
|
||||
return (
|
||||
formattedSsid != null &&
|
||||
(Build.VERSION.SDK_INT < Build.VERSION_CODES.R || formattedSsid !== WifiManager.UNKNOWN_SSID) &&
|
||||
|
|
Loading…
Reference in a new issue