Skip to content

Commit

Permalink
Fix black formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bitoffdev committed Feb 25, 2021
1 parent e4ad0f8 commit 513f3f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kasatk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def for_bulb(cls, loop, bulb: kasa.SmartBulb, config, *args, **kwargs):
width=12,
relief="sunken" if self.bulb.is_on else "raised",
)
self.power_button.bind("<ButtonRelease-1>",
self.power_button.bind(
"<ButtonRelease-1>",
lambda event, self=self, loop=loop: asyncio.run_coroutine_threadsafe(
self._power_callback(), loop
),
Expand Down Expand Up @@ -286,7 +287,6 @@ async def process_devices():
# https://stackoverflow.com/a/53724990/2796349
self.device_queue = asyncio.Queue()


while True:
new_item = await self.device_queue.get()
logging.info("Discovered device: {}".format(repr(new_item)))
Expand Down

0 comments on commit 513f3f7

Please sign in to comment.