Skip to content

Commit e0ef8a0

Browse files
committed
Replace mediaType with type
See WebThingsIO/gateway#2808
1 parent e05ed86 commit e0ef8a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/thing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl Thing for BaseThing {
349349

350350
if let Some(ui_href) = self.get_ui_href() {
351351
let mut ui_form = serde_json::Map::new();
352-
ui_form.insert("mediaType".to_owned(), json!("text/html"));
352+
ui_form.insert("type".to_owned(), json!("text/html"));
353353
ui_form.insert("href".to_owned(), json!(ui_href));
354354
forms.push(ui_form);
355355
}

0 commit comments

Comments
 (0)