mirror of
https://github.com/koush/scrypted.git
synced 2026-03-06 03:12:00 +00:00
core: fix spurious device renaming
This commit is contained in:
4
plugins/core/package-lock.json
generated
4
plugins/core/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/core",
|
||||
"version": "0.1.74",
|
||||
"version": "0.1.75",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/core",
|
||||
"version": "0.1.74",
|
||||
"version": "0.1.75",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/core",
|
||||
"version": "0.1.74",
|
||||
"version": "0.1.75",
|
||||
"description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -266,15 +266,15 @@ export default {
|
||||
},
|
||||
save() {
|
||||
for (const { value } of this.settings) {
|
||||
if (value.key === '__name') {
|
||||
if (value.key === '__name' && value.value !== value.originalValue) {
|
||||
this.device.setName(value.value);
|
||||
continue;
|
||||
}
|
||||
if (value.key === '__type') {
|
||||
if (value.key === '__type' && value.value !== value.originalValue) {
|
||||
this.device.setType(value.value);
|
||||
continue;
|
||||
}
|
||||
if (value.key === '__room') {
|
||||
if (value.key === '__room' && value.value !== value.originalValue) {
|
||||
this.device.setRoom(value.value);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user