Jun 2024
This commit is contained in:
@@ -10,7 +10,11 @@ class DevConfig(DeviceConfig):
|
||||
|
||||
class Dev(DeviceBase):
|
||||
def __init__(self, name):
|
||||
#DeviceBase.__init__(self, name, DevConfig())
|
||||
DeviceBase.__init__(self, name, DeviceConfig({"i":1, "d":1.0, "b":True, "s": "Test"}))
|
||||
raise Exception("test ex")
|
||||
add_device(Dev("test_cfg"), True)
|
||||
DeviceBase.__init__(self, name, DeviceConfig({"intval":1, "floatval":1.0, "boolval":True, "strval": "Test"}))
|
||||
add_device(Dev("testdev"), True)
|
||||
|
||||
print testdev.config
|
||||
print testdev.config.getValue("intval")
|
||||
print testdev.config.getValue("floatval")
|
||||
print testdev.config.getValue("boolval")
|
||||
print testdev.config.getValue("strval")
|
||||
|
||||
Reference in New Issue
Block a user