Struggling to get the unit test working. With some print-debugging I believe the problem is that the test will publish the test messages to the MQTT broker before the MySkodaMqttClient is actually connected and subscribed. Possibly caused by the connect and subscribe now running in an asyncio task ?
https://github.com/empicano/aiomqtt/tree/main
Not done but seems to work fine, also in HA. Public methods remain the same (
connect()
,subscribe()
, ...)Current status: