Skip to content

Commit

Permalink
Fix autopep errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mill1000 committed Nov 8, 2024
1 parent 503f299 commit 86637f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mpris_monitor_kasa.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ async def _run(args) -> None:
if args.discover:
_LOGGER.info("Discovering Kasa devices.")
kasa_devices = (await kasa.Discover.discover(timeout=1)).items()

_LOGGER.info("Found {0} Kasa devices.".format(len(kasa_devices)))
for _, device in kasa_devices:
_LOGGER.info(device)
Expand All @@ -352,7 +352,8 @@ async def _run(args) -> None:
try:
strip = await kasa.Discover.discover_single(args.host)
except kasa.exceptions.SmartDeviceException as ex:
_LOGGER.error("Could not connect to Kasa device at %s. Error: %s", args.host, ex)
_LOGGER.error(
"Could not connect to Kasa device at %s. Error: %s", args.host, ex)
exit()

# Update strip information
Expand Down

0 comments on commit 86637f5

Please sign in to comment.