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

Bump aiocoap from 0.4.4 to 0.4.5 #584

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 28, 2022

Bumps aiocoap from 0.4.4 to 0.4.5.

Changelog

Sourced from aiocoap's changelog.

Version 0.4.5

Behavioral changes


* RSTs are not sent on unrecognized responses any more unless the received
  message was a CON; the previous behavior was violating the specification.

Deprecations


* UNSUPPORTED_MEDIA_TYPE is now formally deprecated, use
  UNSUPPORTED_CONTENT_FORMAT instead.

Minor enhancements

  • Fix tests for Python 3.11.
  • Lower log level of "but could not match it to a running exchange" from warning to info.
  • Shorten the string representation of message types (to "CON", "ACK" etc.)
Commits
  • 8feee74 Prepare 0.4.5 release
  • 11285c3 Fix behavior in presence of spurious non-CON requests
  • 96eeb67 messagemanager: Don't RST incoming unknown ACK responses
  • 4216cec tests: Check that ACKs don't cause RSTs
  • 90bcf41 messages: Lower log level of spurious ACKs
  • 247b2ce doc: Explain log levels
  • c95e491 Adjust to Python 3.11
  • d5780a7 flake8: Remove unused allowed lints
  • f0689cd flake8: Fix E225
  • b97a483 flake8: Fix E226
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [aiocoap](https://github.com/chrysn/aiocoap) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/chrysn/aiocoap/releases)
- [Changelog](https://github.com/chrysn/aiocoap/blob/master/NEWS)
- [Commits](chrysn/aiocoap@0.4.4...0.4.5)

---
updated-dependencies:
- dependency-name: aiocoap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 28, 2022
@ggravlingen
Copy link
Member

One of the changes in this release seems related to this issue:

home-assistant/core#61874

@MartinHjelmare
Copy link
Contributor

Would be good with a hands on smoke test of this update before merge. 👍

@ggravlingen
Copy link
Member

Looks like it's working as expected:

(.venv) vscode ➜ /workspaces/pytradfri (dependabot/pip/aiocoap-0.4.5) $ pip install -r requirements.txt 
Collecting aiocoap==0.4.5
  Downloading aiocoap-0.4.5-py3-none-any.whl (205 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 205.2/205.2 kB 5.9 MB/s eta 0:00:00
Requirement already satisfied: DTLSSocket==0.1.12 in /opt/.venv/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.1.12)
Requirement already satisfied: pydantic==1.10.2 in /opt/.venv/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (1.10.2)
Requirement already satisfied: Cython in /opt/.venv/lib/python3.10/site-packages (from DTLSSocket==0.1.12->-r requirements.txt (line 2)) (0.29.32)
Requirement already satisfied: typing-extensions>=4.1.0 in /opt/.venv/lib/python3.10/site-packages (from pydantic==1.10.2->-r requirements.txt (line 3)) (4.4.0)
Installing collected packages: aiocoap
  Attempting uninstall: aiocoap
    Found existing installation: aiocoap 0.4.4
    Uninstalling aiocoap-0.4.4:
      Successfully uninstalled aiocoap-0.4.4
Successfully installed aiocoap-0.4.5

Connecting to router:

(.venv) vscode ➜ /workspaces/pytradfri (dependabot/pip/aiocoap-0.4.5) $ python -m pytradfri 192.168.15.18
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001']
DEBUG:pytradfri.api.libcoap_api:Received: [65544,65555,65547,65552,65554,65557,65537,65542,65541,65538,65553,65545,65546,65548,65551,65556,65550]
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001', 65544]
DEBUG:pytradfri.api.libcoap_api:Received: {"9001":"Växtlampa","9003":65544,"9002":1569050703,"9020":1651360351,"9054":0,"9019":0,"3":{"0":"IKEA of Sweden","1":"TRADFRI control outlet","2":"","3":"2.3.089","6":1,"7":4353,"8":0},"5750":3,"3312":[{"5850":0,"5849":0,"5851":0,"9003":0}]}
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001', 65555]
DEBUG:pytradfri.api.libcoap_api:Received: {"9001":"TRADFRI motion sensor","9003":65555,"9002":1634990177,"9020":1669759937,"9054":0,"9019":1,"3":{"0":"IKEA of Sweden","1":"TRADFRI motion sensor","2":"","3":"1.2.214","6":3,"7":4548,"8":0,"9":87},"5750":4,"3300":[{"9003":0}]}
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001', 65547]
DEBUG:pytradfri.api.libcoap_api:Received: {"9001":"Vardagsrumstak 2","9003":65547,"9002":1569057452,"9020":1669835055,"9054":0,"9019":1,"3":{"0":"Philips","1":"LWB010","2":"","3":"1.29.0_r21169","6":1,"7":268,"8":2},"5750":2,"3311":[{"5850":1,"5849":0,"5851":204,"9003":0}]}
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001', 65552]
DEBUG:pytradfri.api.libcoap_api:Received: {"9001":"Nattduksbord 2","9003":65552,"9002":1599395387,"9020":1669814910,"9054":0,"9019":1,"3":{"0":"IKEA of Sweden","1":"TRADFRI bulb E14 WS 470lm","2":"","3":"2.3.087","6":1,"7":16901,"8":5},"5750":2,"3311":[{"5850":0,"5849":2,"5851":191,"5717":0,"5711":454,"5709":30015,"5710":26870,"5706":"efd275","9003":0}]}
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 get ['15001', 65554]

DEBUG:pytradfri.api.libcoap_api:Received: {"9023":"0.tradfri.pool.ntp.org","9059":1669838952,"9060":"2022-11-30T20:09:12.030032Z","9062":0,"9061":0,"9029":"1.19.43","9081":"7e1155520440005a","9082":true,"9083":"642-24-603","9054":0,"9055":0,"9266":0,"9066":5,"9069":1667264887,"9071":1,"9072":10,"9073":8,"9074":14,"9075":58,"9208":1665241092,"9076":10,"9077":30,"9078":1,"9079":0,"9209":1667091600,"9080":60,"9236":3600,"9092":1,"9103":"a1nvlh0fc0asuq.iot.eu-central-1.amazonaws.com","9093":0,"9106":0,"9105":0,"9107":0,"9234":1,"9200":"8018aa4a-8709-421e-8593-38289b8d418f","9118":0,"9204":1,"9211":0,"9235":"SE","9201":2,"9202":1581975291,"9232":1838170}

Example commands:
> devices
> homekit_id
> light.light_control.lights
> api(light.light_control.set_dimmer(10))
> api(light.light_control.set_dimmer(254))
> api(light.light_control.set_xy_color(30015, 26870))
> api(light.light_control.set_predefined_color('Warm Amber'))
> api(lights[1].light_control.set_dimmer(20))
> api(gateway.reboot())
> groups
> moods
> tasks
> dump_devices()
> dump_all()

Running command:

>>> api(light.light_control.set_dimmer(10))
DEBUG:pytradfri.api.libcoap_api:Executing 192.168.15.18 put ['15001', '65547']: {'3311': [{'5851': 10}]}
DEBUG:pytradfri.api.libcoap_api:Received: 

Copy link
Contributor

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@MartinHjelmare MartinHjelmare merged commit 1392336 into master Nov 30, 2022
@MartinHjelmare MartinHjelmare deleted the dependabot/pip/aiocoap-0.4.5 branch November 30, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants