From e6a26ee148587327478d9a82624a820c907b6e16 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 04 十一月 2020 14:58:15 +0800 Subject: [PATCH] 20201104 --- HDL_ON/Entity/Function/AC.cs | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/HDL_ON/Entity/Function/AC.cs b/HDL_ON/Entity/Function/AC.cs index 83eda9e..671f080 100644 --- a/HDL_ON/Entity/Function/AC.cs +++ b/HDL_ON/Entity/Function/AC.cs @@ -1,20 +1,17 @@ 锘縰sing System; -using System.Collections; using System.Collections.Generic; -using Newtonsoft.Json.Linq; -using Shared; namespace HDL_ON.Entity { public class AC : Function { /* - * 绌鸿皟锛歵rait: [switch, mode, fan, temperature, swing, lock] + * 绌鸿皟锛歵rait: [switch, mode, fan, set_temperature, swing, lock] * 灞炴�� 鎻忚堪 * on_off on/off * mode mode: auto, cool, heat, dry, fan * fan high, medium, low, auto - * temperature up,down,value + * set_temperature up,down,value * swing up/down/left/right * lock boolean (Lock閿佸畾鎺у埗) */ @@ -240,13 +237,13 @@ { if (_trait_temp == null) { - _trait_temp = function.Find((obj) => obj.name == "temperature"); + _trait_temp = function.Find((obj) => obj.name == "set_temperature"); //鎵句笉鍒板睘鎬ч渶瑕佸0鏄庝竴涓紝闃叉鎶ラ敊闂�� if (_trait_temp == null) { _trait_temp = new Trait() { - name = "temperature", + name = "set_temperature", value_key = new List<string> { }, max = 32, min = 16, @@ -257,7 +254,6 @@ return _trait_temp; } } - Trait _trait_swting; [Newtonsoft.Json.JsonIgnore] -- Gitblit v1.8.0