mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-10 01:17:42 +01:00
fix props for plugin
This commit is contained in:
parent
64dea90e3b
commit
0a3e272f85
2 changed files with 0 additions and 5 deletions
|
@ -28,7 +28,6 @@ from cbpi.eventbus import CBPiEventBus
|
||||||
from cbpi.http_endpoints.http_login import Login
|
from cbpi.http_endpoints.http_login import Login
|
||||||
from cbpi.utils import *
|
from cbpi.utils import *
|
||||||
from cbpi.websocket import CBPiWebSocket
|
from cbpi.websocket import CBPiWebSocket
|
||||||
from cbpi.satellite import CBPiSatellite
|
|
||||||
from cbpi.http_endpoints.http_actor import ActorHttpEndpoints
|
from cbpi.http_endpoints.http_actor import ActorHttpEndpoints
|
||||||
|
|
||||||
from cbpi.http_endpoints.http_config import ConfigHttpEndpoints
|
from cbpi.http_endpoints.http_config import ConfigHttpEndpoints
|
||||||
|
@ -91,7 +90,6 @@ class CraftBeerPi:
|
||||||
self.job = JobController(self)
|
self.job = JobController(self)
|
||||||
self.config = ConfigController(self)
|
self.config = ConfigController(self)
|
||||||
self.ws = CBPiWebSocket(self)
|
self.ws = CBPiWebSocket(self)
|
||||||
self.satellite = CBPiSatellite(self)
|
|
||||||
self.actor = ActorController(self)
|
self.actor = ActorController(self)
|
||||||
self.sensor = SensorController(self)
|
self.sensor = SensorController(self)
|
||||||
self.plugin = PluginController(self)
|
self.plugin = PluginController(self)
|
||||||
|
|
|
@ -7,9 +7,7 @@ from hbmqtt.mqtt.constants import QOS_1, QOS_2
|
||||||
from asyncio_mqtt import Client, MqttError, Will
|
from asyncio_mqtt import Client, MqttError, Will
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
|
||||||
class CBPiMqttClient:
|
class CBPiMqttClient:
|
||||||
|
|
||||||
def __init__(self, cbpi):
|
def __init__(self, cbpi):
|
||||||
self.cbpi = cbpi
|
self.cbpi = cbpi
|
||||||
self.cbpi.bus.register("#", self.listen)
|
self.cbpi.bus.register("#", self.listen)
|
||||||
|
@ -17,7 +15,6 @@ class CBPiMqttClient:
|
||||||
self._loop = asyncio.get_event_loop()
|
self._loop = asyncio.get_event_loop()
|
||||||
self._loop.create_task(self.init_client(self.cbpi))
|
self._loop.create_task(self.init_client(self.cbpi))
|
||||||
|
|
||||||
|
|
||||||
async def init_client(self, cbpi):
|
async def init_client(self, cbpi):
|
||||||
|
|
||||||
async with Client("localhost", will=Will(topic="cbpi/diconnect", payload="MY CLIENT"))as client:
|
async with Client("localhost", will=Will(topic="cbpi/diconnect", payload="MY CLIENT"))as client:
|
||||||
|
|
Loading…
Reference in a new issue