tagging cube type
This commit is contained in:
@@ -20,4 +20,14 @@ class iSightDevice:
|
||||
self.thingsproModule = module
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.deviceId} {self.site} {self.number} {self.cloudVersion}"
|
||||
return f"{self.deviceId} {self.site} {self.number} {self.cloudVersion}"
|
||||
|
||||
class CubeDevice:
|
||||
def __init__(self, deviceId: str):
|
||||
if not isinstance(deviceId, str):
|
||||
raise TypeError("deviceId must be a str")
|
||||
|
||||
self.deviceId = deviceId
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.deviceId}"
|
||||
Reference in New Issue
Block a user