Add/improve e2e test cases (#144)

https://github.com/gesellix/Bose-SoundTouch/issues/135
This commit is contained in:
Tobias Gesellchen
2026-04-04 21:05:34 +02:00
committed by GitHub
parent c1e7d513b4
commit 50e45ab5f2
13 changed files with 536 additions and 65 deletions
+4
View File
@@ -197,6 +197,10 @@ func (p ServicePreset) MarshalXML(e *xml.Encoder, start xml.StartElement) error
Username: p.Username,
}
if a.Username == "" && a.Name != "" {
a.Username = a.Name
}
start.Name.Local = "preset"
// Remove all attributes because they are handled in Alias
start.Attr = nil