Skip to content

feat: add discover_devices() so callers can update each device - #161

Open
theSiegs wants to merge 1 commit into
pantherale0:mainfrom
theSiegs:pr/per-device-update
Open

theSiegs wants to merge 1 commit into
pantherale0:mainfrom
theSiegs:pr/per-device-update

Conversation

@theSiegs

Copy link
Copy Markdown

Follow-up to home-assistant/core#192892.

update() refreshes every device and logs and swallows any error from a single one, so a caller can't tell which console failed. This adds discover_devices(), which only fetches the device list (adding new devices to devices), so the caller can run Device.update() per device and handle its errors.

update() and create() work as before; update() now calls discover_devices() itself. Tests and a README note are included.

discover_devices() only fetches the device list, so a caller can run
Device.update() per device and handle a failing device itself. update()
works as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant