File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11__title__ = 'frost_sta_client'
2- __version__ = '1.1.34 '
2+ __version__ = '1.1.35 '
33__license__ = 'LGPL3'
44__author__ = 'Katharina Emde'
55__copyright__ = 'Fraunhofer IOSB'
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ def __next__(self):
6767
6868 result_list = frost_sta_client .utils .transform_json_to_entity_list (json_response , self .entity_class )
6969 self .entities += result_list .entities
70+ self .set_service (self .service )
7071 self .next_link = json_response .get ("@iot.nextLink" , None )
7172 self .iterable_entities = iter (enumerate (self .entities [- len (result_list .entities ):], start = idx ))
7273 return next (self .iterable_entities )[1 ]
@@ -146,10 +147,9 @@ def service(self, value):
146147 raise ValueError ('service should be of type SensorThingsService' )
147148
148149 def set_service (self , service ):
149- if self .service != service :
150- self .service = service
151- for entity in self .entities :
152- entity .set_service (service )
150+ self .service = service
151+ for entity in self .entities :
152+ entity .set_service (service )
153153
154154 def __getstate__ (self ):
155155 data = []
You can’t perform that action at this time.
0 commit comments