homekit/test/test_polaris_stuff.py
2022-12-25 02:13:45 +03:00

21 lines
592 B
Python
Executable File

#!/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.syncleo as polaris
if __name__ == '__main__':
sc = [cl for cl in syncleo.protocol.CmdIncomingMessage.__subclasses__()
if cl is not syncleo.protocol.SimpleBooleanMessage]
sc.extend(syncleo.protocol.SimpleBooleanMessage.__subclasses__())
for cl in sc:
# if cl == polaris.protocol.HandshakeMessage:
# print('skip')
# continue
print(cl.__name__, cl.TYPE)