fix props for plugin

This commit is contained in:
Manuel Fritsch 2021-02-02 21:24:29 +01:00
parent 64dea90e3b
commit 0a3e272f85
2 changed files with 0 additions and 5 deletions

View file

@ -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)

View file

@ -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: