polaris -> syncleo
This commit is contained in:
parent
e4ad17d906
commit
ed590fdd74
@ -13,7 +13,7 @@ from home.api.types import BotType
|
|||||||
from home.mqtt import MQTTBase
|
from home.mqtt import MQTTBase
|
||||||
from home.config import config
|
from home.config import config
|
||||||
from home.util import chunks
|
from home.util import chunks
|
||||||
from polaris import (
|
from syncleo import (
|
||||||
Kettle,
|
Kettle,
|
||||||
PowerType,
|
PowerType,
|
||||||
DeviceListener,
|
DeviceListener,
|
||||||
@ -21,7 +21,7 @@ from polaris import (
|
|||||||
ConnectionStatusListener,
|
ConnectionStatusListener,
|
||||||
ConnectionStatus
|
ConnectionStatus
|
||||||
)
|
)
|
||||||
import polaris.protocol as kettle_proto
|
import syncleo.protocol as kettle_proto
|
||||||
from typing import Optional, Tuple, List, Union
|
from typing import Optional, Tuple, List, Union
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
@ -10,7 +10,7 @@ from argparse import ArgumentParser
|
|||||||
from queue import SimpleQueue
|
from queue import SimpleQueue
|
||||||
from home.mqtt import MQTTBase
|
from home.mqtt import MQTTBase
|
||||||
from home.config import config
|
from home.config import config
|
||||||
from polaris import (
|
from syncleo import (
|
||||||
Kettle,
|
Kettle,
|
||||||
PowerType,
|
PowerType,
|
||||||
protocol as kettle_proto
|
protocol as kettle_proto
|
||||||
|
@ -9,4 +9,4 @@ from .protocol import (
|
|||||||
IncomingMessageListener,
|
IncomingMessageListener,
|
||||||
ConnectionStatusListener,
|
ConnectionStatusListener,
|
||||||
ConnectionStatus
|
ConnectionStatus
|
||||||
)
|
)
|
@ -7,13 +7,13 @@ sys.path.extend([
|
|||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|
||||||
import src.polaris as polaris
|
import src.syncleo as polaris
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sc = [cl for cl in polaris.protocol.CmdIncomingMessage.__subclasses__()
|
sc = [cl for cl in syncleo.protocol.CmdIncomingMessage.__subclasses__()
|
||||||
if cl is not polaris.protocol.SimpleBooleanMessage]
|
if cl is not syncleo.protocol.SimpleBooleanMessage]
|
||||||
sc.extend(polaris.protocol.SimpleBooleanMessage.__subclasses__())
|
sc.extend(syncleo.protocol.SimpleBooleanMessage.__subclasses__())
|
||||||
for cl in sc:
|
for cl in sc:
|
||||||
# if cl == polaris.protocol.HandshakeMessage:
|
# if cl == polaris.protocol.HandshakeMessage:
|
||||||
# print('skip')
|
# print('skip')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user