zigpy / zigpy-znp

TI CC2531, CC13x2, CC26x2 radio support for Zigpy and ZHA
GNU General Public License v3.0
149 stars 40 forks source link

Throw an explicit error about NVRAM corruption when it is detected #218

Closed puddly closed 1 year ago

puddly commented 1 year ago

The following error:

Network formation failed: NVRAM is corrupted, re-flash your adapter's firmware.

Is probably easier to understand than the current one:

zigpy_znp.exceptions.InvalidCommandResponse: Expected SRSP response SYS.OSALNVWriteExt.Rsp(Status=<Status.SUCCESS: 0>), got SYS.OSALNVWriteExt.Rsp(Status=<Status.NV_OPER_FAILED: 10>)

(https://github.com/home-assistant/core/issues/94503#issuecomment-1624193457)