Fix datetime docs (#27608)

This commit is contained in:
Raman Gupta 2023-05-31 15:53:48 -04:00 committed by Franck Nijhof
parent 9f95073041
commit 8b877dcfdb
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -3,11 +3,11 @@ title: Date/Time
description: Instructions on how to set up date/time entities within Home Assistant.
ha_category:
- Date/Time
ha_release: '2023.6'
ha_release: "2023.6"
ha_domain: datetime
ha_quality_scale: internal
ha_codeowners:
- '@home-assistant/core'
- "@home-assistant/core"
ha_integration_type: entity
---
@ -25,11 +25,7 @@ Available services: `datetime.set_value`
Set a new value for the datetime entity.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `entity_id` | no | String or list of strings that point at `entity_id`'s of datetimes to control.
| `datetime` | yes | New datetime value to set. Cannot be combined with `timestamp`, `date`, or `time`.
| `timestamp` | yes | New datetime value to set. Cannot be combined with `datetime`, `date`, or `time`.
| `date` | yes | New date value to set. Cannot be combined with `datetime` or `timestamp`. If `time` is not specified, the existing time of the entity will be used.
| `time` | yes | New date value to set. Cannot be combined with `datetime` or `timestamp`. If `date` is not specified, the existing date of the entity will be used.
| `time_zone` | yes | Time zone of the `datetime` to set. If not provided, the time zone will be set to the time zone of the Home Assistant instance.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------ |
| `entity_id` | no | String or list of strings that point at `entity_id`'s of datetimes to control. |
| `datetime` | no | New datetime value to set. If timezone is not included, the Home Assistant instance's timezone will be used. |