Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions homeassistant/components/econet/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Constants for Econet integration."""

DOMAIN = "econet"
SERVICE_ADD_VACATION = "add_vacation"
SERVICE_DELETE_VACATION = "delete_vacation"
19 changes: 19 additions & 0 deletions homeassistant/components/econet/services.yaml
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 4 deletions homeassistant/components/econet/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import voluptuous as vol

from homeassistant.components.water_heater import (
DOMAIN,
PLATFORM_SCHEMA,
STATE_ECO,
STATE_ELECTRIC,
Expand All @@ -28,6 +27,8 @@
)
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"
Expand All @@ -41,9 +42,6 @@

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,
Expand Down
20 changes: 0 additions & 20 deletions homeassistant/components/water_heater/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'