Skip to content

Commit

Permalink
Remove useless on_msg function in subscribe_logs (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Feb 12, 2023
1 parent e4cfef5 commit f99db35
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions aioesphomeapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,14 @@ async def subscribe_logs(
dump_config: Optional[bool] = None,
) -> None:
self._check_authenticated()

def on_msg(msg: SubscribeLogsResponse) -> None:
on_log(msg)

req = SubscribeLogsRequest()
if log_level is not None:
req.level = log_level
if dump_config is not None:
req.dump_config = dump_config
assert self._connection is not None
self._connection.send_message_callback_response(
req, on_msg, (SubscribeLogsResponse,)
req, on_log, (SubscribeLogsResponse,)
)

async def subscribe_service_calls(
Expand Down

0 comments on commit f99db35

Please sign in to comment.