Skip to content
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

device_class missing from schema for KNX sensors #2405

Closed
ehn opened this issue Dec 26, 2022 · 2 comments
Closed

device_class missing from schema for KNX sensors #2405

ehn opened this issue Dec 26, 2022 · 2 comments
Labels

Comments

@ehn
Copy link
Contributor

ehn commented Dec 26, 2022

The KNX integration lets you set device_class for sensors like so:

knx:
  sensor:
    - name: Name of sensor
      state_address: '1/2/3'
      type: curr
      device_class: current

However, VS Code complains: Property device_class is not allowed.

@ehn
Copy link
Contributor Author

ehn commented Dec 27, 2022

It looks like #2397 would also fix this.

@frenck
Copy link
Collaborator

frenck commented Dec 29, 2022

Resolved in #2397

@frenck frenck closed this as completed Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants