-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
adding device_tracker.tomato https params #4389
Conversation
I'd suggest adding the default values for the optional parameters (port: 80, ssl: false, verify; true) |
Sounds good, I'll update the documents & code to match. |
@@ -23,20 +23,56 @@ To use this device tracker in your installation, add the following to your `conf | |||
# Example configuration.yaml entry | |||
device_tracker: | |||
- platform: tomato | |||
host: YOUR_ROUTER_IP_ADDRESS | |||
host: YOUR_ROUTER_IP_ADDRESS_OR_HOSTNAME | |||
port: YOUR_ROUTER_PORT |
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.
Optional configuration variables should not be in the examples.
We are trying to keep the examples as minimal as possible.
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.
Sounds good!
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.
It might be a good thing to call out that ^^ in the standards documentation since I don't think it mentions optional variables not being part of the examples.
Thanks for cleaning up @GregoryDosh! 🏅 Can be merged as soon as the parent PR gets merged. |
description: "The port number of your router, e.g. `443`." | ||
required: false | ||
type: int | ||
default: 80/443 (ssl disabled/ssl enabled) |
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.
@frenck How should the default port param be handled in the case of ssl/non ssl being chosen? Not sure how this should be represented to the users.
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.
Maybe reference it as "auto detected"?
Of "80/443 (automatically detected)"
Parent PR got merged, I will go ahead and merged the docs in as well. |
Description:
Added new configuration parameters for https support in the device_tracker.tomato component.
Pull request in home-assistant (if applicable): home-assistant/core#11566
Checklist:
current
. New documentation for platforms/components and features should go tonext
.