Skip to content

1.3.2

Compare
Choose a tag to compare
@hostcc hostcc released this 29 Dec 07:02
· 153 commits to master since this release
d1a0912

What's Changed

  • Using combination of self._connected and self._disconnected (both inherited from asyncio_mqtt.client) to detect of MQTT client needs a re-connection upon a network error isn't reliable - the former isn't finished even after a disconnect, while the latter stays with exception after a successful reconnect. Neither self._client.is_connected (from Paho client) is - is returns True if socket is disconnected due to network error. Only testing for self._client.socket() (from Paho client as well) fits the purpose - None indicates the client needs connect

Additionally

  • Github Actions:
    • Updated to most recent version of actions/setup-python to avoid warnings re: using set-output
    • Migrated away from set-output to $GITHUB_OUTPUT variable
  • Packaging: pinned dependency versions
  • Dropped support for Python 3.6
  • Tests:
    • Allow DOCKER_ environment variables for Docker client for Docker-based tests (for podman compatibility)
    • Migrated away from deprecated unfiltered_messages() method of asyncio_mqtt client
    • tests/test_online_sensor.py: Introduced read_online_sensor_states function that attempts to read online sensor state from MQTT broker for allotted period of time. The function replaces version-dependent monkeypatching of asyncio_mqtt.Client of same purpose
    • Added testing with Python 3.10

by @hostcc in #10

Full Changelog: 1.3.1...1.3.2