@@ -170,9 +170,14 @@ def register(ctx, model, type, trait, manufacturer, product_name, description,
170
170
device , nickname , client_type ):
171
171
"""Registers a device model and instance.
172
172
173
- Device model and instance fields can only contain letters, numbers, and the
174
- following symbols: period (.), hyphen (-), underscore (_), space ( ) and
175
- plus (+). The first character of a field must be a letter or number.
173
+ Device model fields can only contain letters, numbers, and the following
174
+ symbols: period (.), hyphen (-), underscore (_), space ( ) and plus (+).
175
+ The first character of a field must be a letter or number.
176
+
177
+ Device instance fields must start with a letter or number. The device ID
178
+ can only contain letters, numbers, and the following symbols: period (.),
179
+ hyphen (-), underscore (_), and plus (+). The device nickname can only
180
+ contain numbers, letters, and the space ( ) symbol.
176
181
"""
177
182
ctx .invoke (register_model ,
178
183
model = model , type = type , trait = trait ,
@@ -214,9 +219,9 @@ def register_model(ctx, model, type, trait,
214
219
manufacturer , product_name , description ):
215
220
"""Registers a device model.
216
221
217
- Device model and instance fields can only contain letters, numbers, and the
218
- following symbols: period (.), hyphen (-), underscore (_), space ( ) and
219
- plus (+). The first character of a field must be a letter or number.
222
+ Device model fields can only contain letters, numbers, and the following
223
+ symbols: period (.), hyphen (-), underscore (_), space ( ) and plus (+).
224
+ The first character of a field must be a letter or number.
220
225
"""
221
226
session = ctx .obj ['SESSION' ]
222
227
@@ -274,9 +279,10 @@ def register_model(ctx, model, type, trait,
274
279
def register_device (ctx , device , model , nickname , client_type ):
275
280
"""Registers a device instance under an existing device model.
276
281
277
- Device model and instance fields can only contain letters, numbers, and the
278
- following symbols: period (.), hyphen (-), underscore (_), space ( ) and
279
- plus (+). The first character of a field must be a letter or number.
282
+ Device instance fields must start with a letter or number. The device ID
283
+ can only contain letters, numbers, and the following symbols: period (.),
284
+ hyphen (-), underscore (_), and plus (+). The device nickname can only
285
+ contain numbers, letters, and the space ( ) symbol.
280
286
"""
281
287
session = ctx .obj ['SESSION' ]
282
288
0 commit comments