tagging cube type

This commit is contained in:
Quentin WEPHRE
2025-04-02 14:49:36 +02:00
parent 62cb98f732
commit 856d7ecac3
2 changed files with 56 additions and 1 deletions

View File

@@ -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}"