-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new zigpy OTA providers for ZHA #111159
Conversation
Hey there @dmulcahey, @Adminiuga, @TheJulianJES, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
1d60123
to
6cfddfa
Compare
EDIT: These following issues should be fixed with this PR too now: (now fixed) issues (click to expand)
0 — Note:The currently installed file version is (redundantly) stored in three places at the moment:
To get to the actual "issues". Again, they're all minor things and no blockers IMO, but some things we should keep in mind to possibly improve in the future: 1:
A solution for this would be to have the ZHA OTA Cluster handler send a signal/event in We could also override the 2:There are some images (one from Hue comes to mind) where the "header img file version" is off by one compared to the After a successful update, we set the Ideally, we would also force read ... but if "issue 1" above is fixed, then ZHA/zigpy would eventually set the correct "installed version" (even for the update entity), since zigpy now queries all devices regularly. 3:With this PR now (different from the first "update entity implementation", as that also restored update entity state): So, if ZHA is then restarted, the update entity will prompt the update again, since a restart now sets ... or is there now some kind of logic in zigpy (with the OTA v2 PR) that already re-reads |
Use `ceil` instead of remapping 1-100
Send both event types Globally enable sending both event types
Breaking change
The OTA file provider was recently disabled without notice because we found dangerous incompatibility issues with Tuya devices that asked for incorrect firmware. We have implemented the Z2M file provider for people who want to use the Z2M OTA repository for community-contributed OTA updates.
Updates from plain
.ota
files are not recommended and risky: OTA files do not contain enough metadata to make sure that they are always applied to the correct device. If you understand the risks and want to use OTA files that aren't present in the Z2M OTA index, you will need to change your configuration:Proposed change
Update ZHA's update platform to utilize the new zigpy OTA system implemented in zigpy/zigpy#1340.
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: