move econet services to econet domain (#29149)

This commit is contained in:
Raman Gupta 2019-11-27 05:18:21 -05:00 committed by Pascal Vizeli
parent ff4d256893
commit 0ff0ec7d3e
5 changed files with 27 additions and 25 deletions

View File

@ -178,7 +178,7 @@ omit =
homeassistant/components/ecobee/notify.py
homeassistant/components/ecobee/sensor.py
homeassistant/components/ecobee/weather.py
homeassistant/components/econet/water_heater.py
homeassistant/components/econet/*
homeassistant/components/ecovacs/*
homeassistant/components/eddystone_temperature/sensor.py
homeassistant/components/edimax/switch.py

View File

@ -0,0 +1,5 @@
"""Constants for Econet integration."""
DOMAIN = "econet"
SERVICE_ADD_VACATION = "add_vacation"
SERVICE_DELETE_VACATION = "delete_vacation"

View File

@ -0,0 +1,19 @@
add_vacation:
description: Add a vacation to your water heater.
fields:
entity_id:
description: Name(s) of entities to change.
example: 'water_heater.econet'
start_date:
description: The timestamp of when the vacation should start. (Optional, defaults to now)
example: 1513186320
end_date:
description: The timestamp of when the vacation should end.
example: 1513445520
delete_vacation:
description: Delete your existing vacation from your water heater.
fields:
entity_id:
description: Name(s) of entities to change.
example: 'water_heater.econet'

View File

@ -6,7 +6,6 @@ from pyeconet.api import PyEcoNet
import voluptuous as vol
from homeassistant.components.water_heater import (
DOMAIN,
PLATFORM_SCHEMA,
STATE_ECO,
STATE_ELECTRIC,
@ -28,6 +27,8 @@ from homeassistant.const import (
)
import homeassistant.helpers.config_validation as cv
from .const import DOMAIN, SERVICE_ADD_VACATION, SERVICE_DELETE_VACATION
_LOGGER = logging.getLogger(__name__)
ATTR_VACATION_START = "next_vacation_start_date"
@ -41,9 +42,6 @@ ATTR_END_DATE = "end_date"
SUPPORT_FLAGS_HEATER = SUPPORT_TARGET_TEMPERATURE | SUPPORT_OPERATION_MODE
SERVICE_ADD_VACATION = "econet_add_vacation"
SERVICE_DELETE_VACATION = "econet_delete_vacation"
ADD_VACATION_SCHEMA = vol.Schema(
{
vol.Optional(ATTR_ENTITY_ID): cv.entity_ids,

View File

@ -29,23 +29,3 @@ set_operation_mode:
operation_mode:
description: New value of operation mode.
example: eco
econet_add_vacation:
description: Add a vacation to your water heater.
fields:
entity_id:
description: Name(s) of entities to change.
example: 'water_heater.econet'
start_date:
description: The timestamp of when the vacation should start. (Optional, defaults to now)
example: 1513186320
end_date:
description: The timestamp of when the vacation should end.
example: 1513445520
econet_delete_vacation:
description: Delete your existing vacation from your water heater.
fields:
entity_id:
description: Name(s) of entities to change.
example: 'water_heater.econet'