"""Driver for connecting ABB Flowmeter to Meshify.""" import threading from device_base import deviceBase class start(threading.Thread, deviceBase): """Start class required for driver.""" def __init__(self, name=None, number=None, mac=None, Q=None, mcu=None, companyId=None, offset=None, mqtt=None, Nodes=None): """Initalize the driver.""" threading.Thread.__init__(self) deviceBase.__init__(self, name=name, number=number, mac=mac, Q=Q, mcu=mcu, companyId=companyId, offset=offset, mqtt=mqtt, Nodes=Nodes) self.daemon = True self.version = "6" self.finished = threading.Event() threading.Thread.start(self) # this is a required function for all drivers # its goal is to upload some piece of data # about your device so it can be seen on the web def register(self): """Register the driver.""" self.channels["status"]["last_value"] = "" def run(self): """Run the driver.""" pass