mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Refactor mysensors message handling (#17214)
* Refactor mysensors message handling * Add handler module and register handlers per message type or message sub-type. This will allow easier extension of message handling in the future. * Move some common functions to a helpers module. * Add node handler and signal * Fix inconsistent return * Upgrade pymysensors to 0.18.0 * Fix bug in message modification.
This commit is contained in:
@@ -16,10 +16,12 @@ CONF_TOPIC_OUT_PREFIX = 'topic_out_prefix'
|
||||
CONF_VERSION = 'version'
|
||||
|
||||
DOMAIN = 'mysensors'
|
||||
MYSENSORS_GATEWAY_READY = 'mysensors_gateway_ready_{}'
|
||||
MYSENSORS_GATEWAYS = 'mysensors_gateways'
|
||||
PLATFORM = 'platform'
|
||||
SCHEMA = 'schema'
|
||||
SIGNAL_CALLBACK = 'mysensors_callback_{}_{}_{}_{}'
|
||||
CHILD_CALLBACK = 'mysensors_child_callback_{}_{}_{}_{}'
|
||||
NODE_CALLBACK = 'mysensors_node_callback_{}_{}'
|
||||
TYPE = 'type'
|
||||
|
||||
# MySensors const schemas
|
||||
|
||||
Reference in New Issue
Block a user