44from .event import Event
55from .json .schemas import schema_to_json
66from .json .paths import rule_to_params , rule_to_path
7- from .find import current_labthing
7+ from .find import current_thing
88from .utilities import get_docstring , snake_to_camel
99
1010
@@ -114,7 +114,7 @@ def links(self):
114114 td_links .append (
115115 {
116116 "rel" : link_description .get ("rel" ),
117- "href" : current_labthing () .url_for (
117+ "href" : current_thing .url_for (
118118 link_description .get ("view" ),
119119 ** link_description .get ("params" ),
120120 _external = True ,
@@ -139,11 +139,11 @@ def to_dict(self):
139139 "https://www.w3.org/2019/wot/td/v1" ,
140140 "https://iot.mozilla.org/schemas/" ,
141141 ],
142- "@type" : current_labthing () .types ,
142+ "@type" : current_thing .types ,
143143 "id" : url_for ("root" , _external = True ),
144144 "base" : request .host_url ,
145- "title" : current_labthing () .title ,
146- "description" : current_labthing () .description ,
145+ "title" : current_thing .title ,
146+ "description" : current_thing .description ,
147147 "properties" : self .properties ,
148148 "actions" : self .actions ,
149149 # "events": self.events, # TODO: Enable once properly populated
0 commit comments