I added a few dummy classes and methods that don't actually do anything - to see if I could help VSCode with auto-completion, and it works reasonably well. Below are the handful of methods and variables that I use, an admittedly naïve version without type help, etc.
My feature request would be for a proper version of this file to be made and shipped with Indigo. Or on the website somewhere? Or heck, maybe even put it into pip so that I can just 'pip install indigo-types' or something similar, and not have to mess with copying a file.
Thanks!
- Code: Select all
## indigo.py - shell to fake out VS Code and to help with auto-completion
devices = []
variables = []
class server:
def getPlugin(id):
return ""
def log(msg):
return
class dimmer:
def setBrightness(name, value):
return
class device:
def turnOn(name):
return
def turnOff(name):
return
class speedcontrol:
def setSpeedIndex(name, value):
return
class variable:
def updateValue(id, value):
return
def getValue(id):
return ""
class insteon:
def sendRawExtended(address, rawMessage):
return