-
-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
Support for multiple min-max sensors #12500
Conversation
* Breaking Change: Updated Schema to support multiple Min_Max Sensors * Breaking Change: Changed name to friendly_name * Small imporvements * Updated tests
I'm sorry if this has been answered, but why do we even need this? I mean adding a new Is it somehow related to performance or consistency? Because I can't think of any other reason... |
There are two different styles available to achieve the same thing when it comes to the setup of entities. We have no guidelines on this and probably will never have. It pretty much depends on the person who create/created the integration. I prefer the multiple platform approach. Because it's easier to use for newbies, is more flexible if one want to split the configuration (aka one file for one entity vs. all Change the style of one integration will not make the setup or configuration of Home Assistant at lot easier. |
@OttoWinter I originally started this PR because of inconsistencies with some template platforms and the input components (these are the cases I know of).
@fabaff IMO is about consistency across different components. This PR is meant as a suggestion to increase such. |
If you talk about consistency then it should be the other way around. The platforms/components which support the multiple entities style are in the minority (at least, last time I checked when this topic was coming up).
I disagree. People are less creative than we think when it comes to name things. The current way with the default name is already covering this even when there is no
Not really. The structure of the configuration file is independent from the style and works with multiple
I'm sure that there are people out there who are using the same platform multiple times. They want to know how the weather is at their holiday home or in their favorite ski area and use the same service/platform. It would be easier to move this discussion to https://github.com/home-assistant/architecture to keep this PR short. |
Closing it, see: home-assistant/architecture#12 |
Description:
I updated the component schema, to account for multiple
min_max sensors
. Other changes include:name
tofriendly_name
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#4700
Breaking changes
The
min/max
sensor now supports adding multiple sensors without the need to add a new platform entry. For information on how to update your configurations file, refer to the component page Min/Max Sensor.Example entry for
configuration.yaml
(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code does not interact with devices:
tox
run successfully. Your PR cannot be merged unless tests pass