Script execution

This commit is contained in:
gac-x04sa
2018-10-16 11:28:54 +02:00
parent 1cae9a0da6
commit 3b525809be

View File

@@ -1,6 +1,6 @@
class Mythen(DeviceBase):
class Mythen(DeviceBase, Readable):
def __init__(self, name, prefix):
DeviceBase.__init__(self, name)
self.prefix = prefix
@@ -50,5 +50,8 @@ class Mythen(DeviceBase):
self.get_total_counts()
self.is_acquiring()
def read(self):
return self.get_total_counts()
add_device( Mythen("mythen", "X04SA-ES2-SD1"), True)