Skip to content

new version of HA returns arrays instead of single #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vzabavnov opened this issue Mar 12, 2025 · 1 comment
Open

new version of HA returns arrays instead of single #272

vzabavnov opened this issue Mar 12, 2025 · 1 comment

Comments

@vzabavnov
Copy link

I don't use code generator very often because I use my own strongly types library, but I use to check if I messed up with something. juts recently I found Code generation doesn't work during deserialization error. I found what cause the issue: Json returned from HA returns arrays instead of single item as it was previously:

"selector": {
  "area": {
    "device": [
      {
        "integration": "zwave_js"
      },
    ]
    "multiple": true
  }
}

the device now is an array. there are few other places where selectors have arrays instead of single one.
in addition, I found new element on the device, the filter:

"selector": {
            "device": {
              "filter": [
                {
                  "integration": "zwave_js"
                }
              ],
              "multiple": true
            }
          }

I have a fix and checking if it works. at least now I am able to have fully generated entities

I have:

Core 2025.3.2
Supervisor 2025.03.2
Operating System 14.2
Frontend 20250306.0
@vzabavnov
Copy link
Author

I am sorry, created at wrong branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant