home-assistant-android/app
Joris Pelgröm b418491667
Breaking change: send sensor list attributes as list to server (#2478)
* Breaking change: send sensor list attributes as list to server

 - Send a sensor attribute that is managed by the app as a list, to the server as a list as well instead of a stringified version of a list.

* Fallback to string for lists that include separator

 - To prevent issues where we can't distinguish the list items separator from a value that includes the separator, don't try to convert a value to a list if that is the case but instead use string

* Improve string fallback for lists that include separator

 - Instead of only falling back when a list includes a String with the separator, just use toString() to also support other objects which might include ", " when stringified, such as nested lists

* Store list data as JSON

 - To remove any confusion when sending individual list items, store data as JSON to escape characters if necessary
 - Map Any data in a list that is not any of the specific types to string, for consistency with the same types when not in a list and to prevent JSON serialization issues
2022-04-30 07:47:44 -04:00
..
src Breaking change: send sensor list attributes as list to server (#2478) 2022-04-30 07:47:44 -04:00
build.gradle.kts Bump kotlin-stdlib-jdk8 from 1.6.20 to 1.6.21 (#2467) 2022-04-23 07:34:05 -04:00
proguard-rules.pro Initial commit 2019-04-01 22:52:08 -07:00