Use ENTITY_DOMAIN in callService

This commit is contained in:
2020-05-07 01:40:29 +03:00
parent 6ac3d62823
commit 45d3364959
+1 -1
View File
@@ -121,7 +121,7 @@ export class TimePickerCard extends LitElement {
const time = `${this.hour.value}:${this.minute.value}:00`;
return this.hass.callService('input_datetime', 'set_datetime', {
return this.hass.callService(TimePickerCard.ENTITY_DOMAIN, 'set_datetime', {
entity_id: this.entity!.entity_id,
time,
});