Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Better Flow for Device Handlers (Send, Rcvd, Functions) #13

Open
krkeegan opened this issue Apr 3, 2017 · 0 comments
Open

Better Flow for Device Handlers (Send, Rcvd, Functions) #13

krkeegan opened this issue Apr 3, 2017 · 0 comments

Comments

@krkeegan
Copy link
Owner

krkeegan commented Apr 3, 2017

Right now when creating an InsteonDevice the flow resembles

  1. on init set to generic
  2. init calls functions.initialize_device which creates the groups and at least adds the root as group 0x01
  3. init also calls send_handler.intialize_device which runs a bunch of inits steps and calls Insteon_Device.update_device
  4. update_device uses the dev_cat data to re-init the various handlers to their proper type

This seems circuitous. Some of this is needed, for example we need a generic send and rcvd handler to do a dev_cat query. But if we could condense this down, I am sure we would avoid some gnarly errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant