Skip to content

udp_communication.py improvements

Choose a tag to compare

@heatvent heatvent released this 27 Jul 19:32
· 30 commits to main since this release
306ce9a

Key Changes:
Initialization with Home Assistant Context: Added Home Assistant's context to manage updates and communicate with the main thread.
Structured Command Handling: Added a method to handle incoming messages and dispatch updates to Home Assistant, using the dispatcher.
Command Sequence Handling: Incorporated a sequence counter to ensure command uniqueness, wrapping at 99 as specified.
Error Handling: Added robust error logging for troubleshooting.
Async Handling: Ensured proper use of asyncio for network communications.