11
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user