1.3.2
What's Changed
- Using combination of
self._connected
andself._disconnected
(both inherited fromasyncio_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. Neitherself._client.is_connected
(from Paho client) is - is returns True if socket is disconnected due to network error. Only testing forself._client.socket()
(from Paho client as well) fits the purpose - None indicates the client needsconnect
Additionally
- Github Actions:
- Updated to most recent version of
actions/setup-python
to avoid warnings re: usingset-output
- Migrated away from
set-output
to$GITHUB_OUTPUT
variable
- Updated to most recent version of
- 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 ofasyncio_mqtt
client tests/test_online_sensor.py
: Introducedread_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 ofasyncio_mqtt.Client
of same purpose- Added testing with Python 3.10
- Allow DOCKER_ environment variables for Docker client for Docker-based tests (for
Full Changelog: 1.3.1...1.3.2