Repository navigation
Conversation
scripts/build.py stopped accepting --panel-config-repository in 8afdaf7 when the frontend registry moved into the integration, but publish.yml still passed it, so the v4.0.0 release build failed during argument parsing. Also stop uploading panel-config-release.json, which build.py no longer produces. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The v4.0.0 release was withdrawn, so the device switch refresh fix ships as a second release candidate instead. Retitle the CHANGELOG entry to v4.0.0-rc2 and add the fix under Fixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes device switches (e.g. TRV/RoomStat/Button Panel Identify) breaking the coordinator refresh when the hub temporarily stops reporting a device.
WiserDeviceSwitchnow finds its device inwiserhub.devices.allon each refresh, matching on device id, the switch key, and the product type it was created with. Before, it calleddevices.get_by_id()and read the attribute straight off whatever came back.available = Falseandis_on = Falseinstead of raising, andturn_on/turn_offdo nothing.unique_idanddevice_infouse the product type and firmware version stored at setup, so they no longer read from a device object that may be missing.Notes
dev(ci: drop removed --panel-config-repository flag from publish workflow) is already onmasterasc2faa69and adds nothing to the diff here.v4.0.0release and its tag have been removed, so this ships as 4.0.0-rc2.const.py,manifest.json, the README title, and theCHANGELOG.mdheading now read4.0.0-rc2, and the fix is listed under Fixed.Test plan
python3 -m unittest tests.test_switch_hot_water: 19 tests OK, including the newWiserDeviceSwitchRefreshTest, which covers a device going missing and coming backtests.test_buildandtests.test_card_updates. Those two fail the same way onmasterbecause of local environment issues (awesomeversionnot installed, test import path), not because of this change.4.0.0-rc2: the integration loaded with only the usual "untested custom integration" warning and no version error🤖 Generated with Claude Code