diff --git a/cbpi/craftbeerpi.py b/cbpi/craftbeerpi.py index 26258ae..9c17785 100644 --- a/cbpi/craftbeerpi.py +++ b/cbpi/craftbeerpi.py @@ -28,7 +28,6 @@ from cbpi.eventbus import CBPiEventBus from cbpi.http_endpoints.http_login import Login from cbpi.utils import * from cbpi.websocket import CBPiWebSocket -from cbpi.satellite import CBPiSatellite from cbpi.http_endpoints.http_actor import ActorHttpEndpoints from cbpi.http_endpoints.http_config import ConfigHttpEndpoints @@ -91,7 +90,6 @@ class CraftBeerPi: self.job = JobController(self) self.config = ConfigController(self) self.ws = CBPiWebSocket(self) - self.satellite = CBPiSatellite(self) self.actor = ActorController(self) self.sensor = SensorController(self) self.plugin = PluginController(self) diff --git a/cbpi/extension/mqtt/__init__.py b/cbpi/extension/mqtt/__init__.py index 545e4f8..2f73c1b 100644 --- a/cbpi/extension/mqtt/__init__.py +++ b/cbpi/extension/mqtt/__init__.py @@ -7,9 +7,7 @@ from hbmqtt.mqtt.constants import QOS_1, QOS_2 from asyncio_mqtt import Client, MqttError, Will import asyncio - class CBPiMqttClient: - def __init__(self, cbpi): self.cbpi = cbpi self.cbpi.bus.register("#", self.listen) @@ -17,7 +15,6 @@ class CBPiMqttClient: self._loop = asyncio.get_event_loop() self._loop.create_task(self.init_client(self.cbpi)) - async def init_client(self, cbpi): async with Client("localhost", will=Will(topic="cbpi/diconnect", payload="MY CLIENT"))as client: