Skip to content

Conversation

@puddly
Copy link
Contributor

@puddly puddly commented Aug 22, 2022

The EZSP "running" flag was not set during probing after #485 and this was not caught by unit tests. This fixes both problems.

@codecov-commenter
Copy link

Codecov Report

Merging #487 (9261a7a) into dev (0b297b0) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #487   +/-   ##
=======================================
  Coverage   99.92%   99.93%           
=======================================
  Files          51       51           
  Lines        4283     4286    +3     
=======================================
+ Hits         4280     4283    +3     
  Misses          3        3           
Impacted Files Coverage Δ
bellows/ezsp/__init__.py 98.64% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@agners agners mentioned this pull request Aug 22, 2022
@puddly puddly merged commit bffeb35 into zigpy:dev Aug 22, 2022
puddly added a commit that referenced this pull request Aug 22, 2022
* Fix radio probing broken by #485 (#487)

* Use the same startup reset sequence during probing

* Adjust unit test to catch errors like this in the future

* Call `_startup_reset` within the CLI tools

* Add support for tcp protocol

Add tcp:// protocol to talk to EZSP radio via TCP/IP. Compared to the
existing socket:// protocol this uses Python's loop.create_connection()
instead of pyserial. In tests this makes `bellows info` to complete
about 50x faster (measured after reset, from 0.6s to 0.012s).

* Address isort

Co-authored-by: puddly <32534428+puddly@users.noreply.github.com>
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.

3 participants