44# License, v. 2.0. If a copy of the MPL was not distributed with this
55# file, You can obtain one at https://mozilla.org/MPL/2.0/.
66
7- from .ucloud import AIOTClient # noqa
8- from .ucloud import AIOTObject
7+ from .ucloud import ArduinoCloud # noqa
8+ from .ucloud import ArduinoCloudObject
99from .ucloud import timestamp
1010
1111try :
3636)
3737
3838
39- class Location (AIOTObject ):
39+ class Location (ArduinoCloudObject ):
4040 def __init__ (self , name , ** kwargs ):
4141 super ().__init__ (name , keys = {"lat" , "lon" }, ** kwargs )
4242
4343
44- class Color (AIOTObject ):
44+ class Color (ArduinoCloudObject ):
4545 def __init__ (self , name , ** kwargs ):
4646 super ().__init__ (name , keys = {"hue" , "sat" , "bri" }, ** kwargs )
4747
4848
49- class ColoredLight (AIOTObject ):
49+ class ColoredLight (ArduinoCloudObject ):
5050 def __init__ (self , name , ** kwargs ):
5151 super ().__init__ (name , keys = {"swi" , "hue" , "sat" , "bri" }, ** kwargs )
5252
5353
54- class DimmedLight (AIOTObject ):
54+ class DimmedLight (ArduinoCloudObject ):
5555 def __init__ (self , name , ** kwargs ):
5656 super ().__init__ (name , keys = {"swi" , "bri" }, ** kwargs )
5757
5858
59- class Schedule (AIOTObject ):
59+ class Schedule (ArduinoCloudObject ):
6060 def __init__ (self , name , ** kwargs ):
6161 kwargs .update ({("runnable" , True )}) # Force task creation.
6262 self .on_active = kwargs .pop ("on_active" , None )
@@ -78,7 +78,7 @@ async def run(self, aiot):
7878 await asyncio .sleep (self .interval )
7979
8080
81- class Task (AIOTObject ):
81+ class Task (ArduinoCloudObject ):
8282 def __init__ (self , name , ** kwargs ):
8383 kwargs .update ({("runnable" , True )}) # Force task creation.
8484 self .on_run = kwargs .pop ("on_run" , None )
0 commit comments