Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor mysensors message handling #17214
This should allow you to more easily handle heartbeats. Register a handler of that internal message type in the handler module. Connect an additional callback in the base mysensors entity class and the device tracker platform for node updates.
changed the title from
WIP: Refactor mysensors message handling
Refactor mysensors message handling
Oct 21, 2018
@inetAnt I've now included node callbacks and a node update helper in the handler module. So handling hearbeats should be just registering a new handler and calling the node update handler helper, besides adding hearbeats to device state attributes.
This PR is now tested, so it's ready for review.