Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Remove debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
j616 committed Apr 17, 2019
1 parent 3528015 commit 22568a5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions brewblox_tilt/tiltScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def handleData(self, data, rssi):
rssi),
loop=self.loop)

LOGGER.info("colour: {}, temp: {}, sg: {}, signal strenght:{}".format(
LOGGER.debug("colour: {}, temp: {}, sg: {}, signal strenght:{}".format(
decodedData["colour"],
decodedData["temp_f"],
decodedData["sg"],
Expand Down Expand Up @@ -147,20 +147,12 @@ def _blockingScanner(self):
LOGGER.error(f'Encountered an error: {ex}')
sleep(1)

async def on_message(self, subscription, key, message):
print(f'Message from {subscription}: {key} = {message} ({type(message)})')

async def _run(self):
loop = asyncio.get_running_loop()
self.scanner = Scanner().withDelegate(
ScanDelegate(self.app, loop))

LOGGER.info('Started TiltScanner')

listener = events.get_listener(self.app)
listener.subscribe('brewcast',
"*",
on_message=self.on_message)

await loop.run_in_executor(
None, self._blockingScanner)

0 comments on commit 22568a5

Please sign in to comment.