AaronLionsheep / ShellyMQTT

IndigoDomo Plugin that interfaces with Shelly devices over MQTT.
MIT License
0 stars 0 forks source link

Refactor to store device id's #55

Closed AaronLionsheep closed 4 years ago

AaronLionsheep commented 4 years ago

A shelly device class requires an Indigo device object instead of the id of a device. It would be safer to store the id of an indigo device and request the device object at the beginning of methods.

AaronLionsheep commented 4 years ago

Switching to call refreshFromServer() on the device to get updated information instead of restructuring the way device information is stored and retrieved. Testing with refreshing when indigo calls deviceUpdated within the plugin.