diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-28 03:22:30 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-30 03:47:49 +0300 |
commit | 8f20c9b825cabab7a3f0f5dd2cfe000cc7f72c28 (patch) | |
tree | b5d7446e7b2fcfd42b1e5029aeef33ecb5f9715f /test/test_polaris_stuff.py | |
parent | ee09bc98aedfc6a65a5026432b399345a30a39c8 (diff) |
polaris pwk 1725cgld full support
- significant improvements, correctnesses and stability fixes in
protocol implementation
- correct handling of device appearances and disappearances
- flawlessly functioning telegram bot that re-renders kettle's state
(temperature and other) in real time
Diffstat (limited to 'test/test_polaris_stuff.py')
-rwxr-xr-x | test/test_polaris_stuff.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/test_polaris_stuff.py b/test/test_polaris_stuff.py new file mode 100755 index 0000000..f3c8e6a --- /dev/null +++ b/test/test_polaris_stuff.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +import sys +import os.path +sys.path.extend([ + os.path.realpath( + os.path.join(os.path.dirname(os.path.join(__file__)), '..') + ) +]) + +import src.polaris as polaris + + +if __name__ == '__main__': + sc = [cl for cl in polaris.protocol.CmdIncomingMessage.__subclasses__() + if cl is not polaris.protocol.SimpleBooleanMessage] + sc.extend(polaris.protocol.SimpleBooleanMessage.__subclasses__()) + for cl in sc: + # if cl == polaris.protocol.HandshakeMessage: + # print('skip') + # continue + print(cl.__name__, cl.TYPE)
\ No newline at end of file |