This commit is contained in:
fuenmao
2026-10-09 18:06:11 +08:00
parent e6b90a06ab
commit 2d44cc3966
17 changed files with 1161 additions and 264 deletions
@@ -28,6 +28,8 @@ public sealed class HomeAssistantAttributeSerializationTests
fan_modes = new[] { "自动", "低风", "中风", "高风" },
swing_modes = new[] { "off", "vertical" },
options = new[] { "智能适配", "轻柔", "全身" },
supported_color_modes = new[] { "color_temp" },
effect_list = new[] { "阅读模式", "助眠模式" },
current_temperature = 24.9,
temperature = 23,
temperature_unit = "°C",
@@ -50,6 +52,8 @@ public sealed class HomeAssistantAttributeSerializationTests
[InlineData("fan_modes")]
[InlineData("swing_modes")]
[InlineData("options")]
[InlineData("supported_color_modes")]
[InlineData("effect_list")]
public void ApiSerializesChoiceArraysAsStringsNotJsonElementMetadata(string key)
{
var state = State();