def status(self, args=None): """ Get status for relay, inputs, counter, etc """ ipx = IPX(self._log, None, None) if len(args) == 2: ipx.open("foo", args[0], args[1]) elif len(args) == 4: ipx.open("foo", args[0], args[1], args[2], args[3]) else: return ["Bad usage of this helper"] data = ipx.get_status_for_helper() print(data) return data
def status(self, args = None): """ Get status for relay, inputs, counter, etc """ ipx = IPX(self._log, None, None) if len(args) == 2: ipx.open("foo", args[0], args[1]) elif len(args) == 4: ipx.open("foo", args[0], args[1], args[2], args[3]) else: return ["Bad usage of this helper"] data = ipx.get_status_for_helper() print(data) return data