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

Create services.yaml for input_datetime #23303

Merged
merged 2 commits into from Apr 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions homeassistant/components/input_datetime/services.yaml
@@ -0,0 +1,9 @@
set_datetime:
description: This can be used to dynamically set the date and/or time.
fields:
entity_id: {description: Entity id of the input datetime to set the new value.,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you using such weird YAML constructs. Sure it's valid, but does not look nice?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, but could be better 😉

I'll see if I can write a script to fix them all.

example: input_datetime.test_date_time}
date: {description: The target date the entity should be set to.,
example: '"date": "2019-04-22"'}
time: {description: The target time the entity should be set to.,
example: '"time": "05:30:00"'}