Skip to content
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

Require pyserial-asyncio newer than 0.5 #1131

Closed
wants to merge 9 commits into from

Conversation

Hedda
Copy link
Contributor

@Hedda Hedda commented Apr 10, 2022

pyserial-asyncio is required by recommend newer than pyserial-asyncio 0.5 (ie. 0.6 or later) as 0.5 is broken on Windows OS.

Due to known issue with pyserial-asyncio 0.5 on Windows OS -> pyserial/pyserial-asyncio#69

https://github.com/zigbeefordomoticz/Domoticz-Zigbee/blob/stable6/requirements.txt

See example zigpy-znp config which exclude use of pyserial-asyncio 0.5 version :

https://github.com/zigpy/zigpy-znp/blob/dev/setup.cfg

install_requires =
    pyserial-asyncio; platform_system!="Windows"
    pyserial-asyncio!=0.5; platform_system=="Windows"  # 0.5 broke writes

Alternative is to just set pyserial-asyncio 0.6 as the requirement, that is what Home Assistant core does for ZHA component:

https://github.com/home-assistant/core/blob/dev/requirements_all.txt#L1784

# homeassistant.components.serial
# homeassistant.components.zha
pyserial-asyncio==0.6

zigbeefordomoticz and others added 9 commits April 2, 2022 15:37
* Pipiche38/zigpy/fetchupstream02042022 (zigbeefordomoticz#1124)
* merge zigpy and bellows upstream update
* fix mistake in Version firmware deconding, whcih can impact the plugin startup
* disable Log
* update readme with Windows page
* update release date
* make it Windows compatible

Co-authored-by: Pipiche <pipiche38@users.noreply.github.com>
pyserial-asyncio is required by recommend use newer than pyserial-asyncio 0.5 (ie. 0.5 or later)  as 0.5 is broken on Windows OS.

Known issue with pyserial-asyncio 0.5 -> pyserial/pyserial-asyncio#69

https://github.com/zigbeefordomoticz/Domoticz-Zigbee/blob/stable6/requirements.txt

See example [zigpy-znp](https://github.com/zigpy/zigpy-znp) config which exclude use of pyserial-asyncio 0.5 version : 

https://github.com/zigpy/zigpy-znp/blob/dev/setup.cfg

```
install_requires =
    pyserial-asyncio; platform_system!="Windows"
    pyserial-asyncio!=0.5; platform_system=="Windows"  # 0.5 broke writes
```
@pipiche38 pipiche38 changed the base branch from stable6 to beta6 April 10, 2022 17:50
@pipiche38
Copy link
Collaborator

please do submit PR against beta6 (and not stable6).

@Hedda Hedda closed this Apr 11, 2022
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