-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Display services as services and not devices #6798
Conversation
${(devices.length || services.length) && entities.length | ||
? this.hass.localize("ui.common.and") | ||
: ""} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also render an and
when there is both a service and a device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had that first, but if the integration has both you end up with:
"x services and x devices and x entities" which feels weird 🤷
Add a comma maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah:
2 devices, 1 service and 5 entities
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
: ""} | ||
${devices.length || services.length ? "," : ""} | ||
${services.length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
: ""} | |
${devices.length || services.length ? "," : ""} | |
${services.length | |
: ""}${devices.length && services.length ? "," : ""} | |
${services.length |
Proposed change
Display services as services and not devices
Type of change
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: