Skip to content

Handle no WifiManager and prevent crash#3555

Merged
JBassett merged 3 commits intohome-assistant:masterfrom
jpelgrom:fix-null-wifimanager
May 28, 2023
Merged

Handle no WifiManager and prevent crash#3555
JBassett merged 3 commits intohome-assistant:masterfrom
jpelgrom:fix-null-wifimanager

Conversation

@jpelgrom
Copy link
Copy Markdown
Member

@jpelgrom jpelgrom commented May 26, 2023

Summary

Fix #3536 by gracefully handling no WifiManager and hiding related options and features.

Unable to test this as all my devices and emulators have Wi-Fi, but manually changing things to false seems to work as expected.

Screenshots

Light Dark
Settings for internal connection + networks, app lock bypass on internal network are removed Settings screen without the mentioned settings, light mode Settings screen without the mentioned settings, dark mode
Setting for persistent connection on home Wi-Fi is removed Persistent connection settings with only Never, While screen is on, Always as options, light mode Persistent connection settings with only Never, While screen is on, Always as options, dark mode
Sensors for Wi-Fi are removed Sensors list only showing two sensors in the Network sensors category, light mode Sensors list only showing two sensors in the Network sensors category, dark mode

Link to pull request in Documentation repository

No Wi-Fi is clearly an exception, I don't think this is worth mentioning in the docs

Any other notes

@jpelgrom jpelgrom changed the title Handle no WiFiManager and prevent crash Handle no WifiManager and prevent crash May 26, 2023
@JBassett JBassett merged commit af2fb67 into home-assistant:master May 28, 2023
@jpelgrom jpelgrom deleted the fix-null-wifimanager branch May 28, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automotive crash on start because of null WifiManager

2 participants