Skip to content

Do not fail the whole device on a Wi-Fi still connecting - #1200

Merged
frenck merged 1 commit into
mainfrom
frenck/optional-wifi-fields
Oct 3, 2026
Merged

frenck merged 1 commit into
mainfrom
frenck/optional-wifi-fields

Conversation

@frenck

@frenck frenck commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Proposed Changes

(Describe the changes and rationale behind them)

A real TIME, while (re)connecting to its Wi-Fi network, answered with a Wi-Fi block without active, ip and netmask, and with mac and ssid as null (home-assistant/core#97575). The whole device then failed to parse, taking the display, audio and everything else down with it until the next poll. In that issue the device recovered after two polls.

Those five Wi-Fi fields are optional now, so only the Wi-Fi details are missing while the device connects. available and mode were present in that answer and stay required.

The fixture is a reconstruction, not a capture: the issue only has the validation error, which lists each field precisely. It is the LM 37X8 capture of the same generation with exactly those changes applied to its Wi-Fi block. Both real devices still parse their Wi-Fi block in full, from the device and the Wi-Fi endpoint.

Heads up for the Home Assistant integration: these fields can now be None. It uses wifi.mac as the device connection in the device registry and wifi.ip for the configuration URL. Taking the MAC from the config entry and the host it already connects to avoids both.

Related Issues

(Github link to related issues or pull requests)

home-assistant/core#97575

A real TIME, still (re)connecting to its Wi-Fi network, answered
without active, ip and netmask, and with mac and ssid as null. That made
the whole device fail to parse, taking the display, audio and everything
else down with it until the next poll.

Those Wi-Fi fields are optional now, so only the Wi-Fi details are
missing while the device connects.
@frenck frenck added the bugfix Inconsistencies or issues which will cause a problem for users or implementers. label Oct 3, 2026
@frenck
frenck merged commit a526edb into main Oct 3, 2026
32 checks passed
@frenck
frenck deleted the frenck/optional-wifi-fields branch October 3, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Inconsistencies or issues which will cause a problem for users or implementers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant