]> mj.ucw.cz Git - home-hw.git/commit
Iris: Two adjustments for new aiomqtt
authorMartin Mares <mj@ucw.cz>
Sat, 26 Aug 2023 14:26:07 +0000 (16:26 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 26 Aug 2023 14:26:07 +0000 (16:26 +0200)
commit90670a11e7a4570d9f1840e5a21e00f3175d4aab
tree5ea0687f951a8638eee0e92a7334f806484fd78f
parent10c033f95cdeeaa692c7f62eabcfcc83536d81bf
Iris: Two adjustments for new aiomqtt

(1) Topic is now an object, we need to extract its value.

(2) Run connect() explicitly instead of relying on automatic connection
establishment using "with". In the latter way, clean disconnect is attempted
upon exceptions, so the will is not sent.
rainbow/iris/burrow-iris.py