mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
move econet services to econet domain (#29149)
This commit is contained in:
parent
ff4d256893
commit
0ff0ec7d3e
@ -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
|
||||
|
5
homeassistant/components/econet/const.py
Normal file
5
homeassistant/components/econet/const.py
Normal file
@ -0,0 +1,5 @@
|
||||
"""Constants for Econet integration."""
|
||||
|
||||
DOMAIN = "econet"
|
||||
SERVICE_ADD_VACATION = "add_vacation"
|
||||
SERVICE_DELETE_VACATION = "delete_vacation"
|
@ -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'
|
@ -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,
|
||||
|
@ -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'
|
Loading…
x
Reference in New Issue
Block a user