-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution #500
base: master
Are you sure you want to change the base?
Solution #500
Conversation
zaietsmo
commented
Jan 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gj :)
end = time.perf_counter() | ||
|
||
print("Elapsed:", end - start) | ||
print("Elapsed:", end - start) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add blank line
def send_msg(self, msg: Message) -> None: | ||
self.devices[msg.device_id].send_message(msg.msg_type, msg.data) | ||
async def send_msg(self, msg: Message) -> None: | ||
await self.devices[msg.device_id].send_message(msg.msg_type, msg.data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line
time.sleep(TIME_TO_SLEEP) | ||
print("Smart Toilet received message.") | ||
await asyncio.sleep(TIME_TO_SLEEP) | ||
print("Smart Toilet received message.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your code implementation is spot on! 🎉 It meets all the task requirements and efficiently uses asynchronous operations with asyncio
. Great job on structuring the code logically and ensuring it runs smoothly. Keep up the excellent work! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨