Change hive hotwater to hot_water + bug fix (#27038)
* Updated hotwater to hot_water + bug fix * Updated version seperating dependancy
This commit is contained in:
parent
f464a78088
commit
2ebc1901ab
4 changed files with 9 additions and 9 deletions
|
@ -23,7 +23,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
DOMAIN = "hive"
|
DOMAIN = "hive"
|
||||||
DATA_HIVE = "data_hive"
|
DATA_HIVE = "data_hive"
|
||||||
SERVICES = ["Heating", "HotWater"]
|
SERVICES = ["Heating", "HotWater"]
|
||||||
SERVICE_BOOST_HOTWATER = "boost_hotwater"
|
SERVICE_BOOST_HOT_WATER = "boost_hot_water"
|
||||||
SERVICE_BOOST_HEATING = "boost_heating"
|
SERVICE_BOOST_HEATING = "boost_heating"
|
||||||
ATTR_TIME_PERIOD = "time_period"
|
ATTR_TIME_PERIOD = "time_period"
|
||||||
ATTR_MODE = "on_off"
|
ATTR_MODE = "on_off"
|
||||||
|
@ -59,7 +59,7 @@ BOOST_HEATING_SCHEMA = vol.Schema(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
BOOST_HOTWATER_SCHEMA = vol.Schema(
|
BOOST_HOT_WATER_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
vol.Required(ATTR_ENTITY_ID): cv.entity_id,
|
vol.Required(ATTR_ENTITY_ID): cv.entity_id,
|
||||||
vol.Optional(ATTR_TIME_PERIOD, default="00:30:00"): vol.All(
|
vol.Optional(ATTR_TIME_PERIOD, default="00:30:00"): vol.All(
|
||||||
|
@ -100,7 +100,7 @@ def setup(hass, config):
|
||||||
|
|
||||||
session.heating.turn_boost_on(node_id, minutes, temperature)
|
session.heating.turn_boost_on(node_id, minutes, temperature)
|
||||||
|
|
||||||
def hotwater_boost(service):
|
def hot_water_boost(service):
|
||||||
"""Handle the service call."""
|
"""Handle the service call."""
|
||||||
node_id = HiveSession.entity_lookup.get(service.data[ATTR_ENTITY_ID])
|
node_id = HiveSession.entity_lookup.get(service.data[ATTR_ENTITY_ID])
|
||||||
if not node_id:
|
if not node_id:
|
||||||
|
@ -151,9 +151,9 @@ def setup(hass, config):
|
||||||
if ha_type == "water_heater":
|
if ha_type == "water_heater":
|
||||||
hass.services.register(
|
hass.services.register(
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
SERVICE_BOOST_HEATING,
|
SERVICE_BOOST_HOT_WATER,
|
||||||
hotwater_boost,
|
hot_water_boost,
|
||||||
schema=BOOST_HOTWATER_SCHEMA,
|
schema=BOOST_HOT_WATER_SCHEMA,
|
||||||
)
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "Hive",
|
"name": "Hive",
|
||||||
"documentation": "https://www.home-assistant.io/components/hive",
|
"documentation": "https://www.home-assistant.io/components/hive",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pyhiveapi==0.2.19"
|
"pyhiveapi==0.2.19.2"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
|
|
@ -14,7 +14,7 @@ boost_heating:
|
||||||
description: Set the target temperature for the boost period.,
|
description: Set the target temperature for the boost period.,
|
||||||
example: "20.5",
|
example: "20.5",
|
||||||
}
|
}
|
||||||
boost_hotwater:
|
boost_hot_water:
|
||||||
description:
|
description:
|
||||||
"Set the boost mode ON or OFF defining the period of time for the boost."
|
"Set the boost mode ON or OFF defining the period of time for the boost."
|
||||||
fields:
|
fields:
|
||||||
|
|
|
@ -1223,7 +1223,7 @@ pyheos==0.6.0
|
||||||
pyhik==0.2.3
|
pyhik==0.2.3
|
||||||
|
|
||||||
# homeassistant.components.hive
|
# homeassistant.components.hive
|
||||||
pyhiveapi==0.2.19
|
pyhiveapi==0.2.19.2
|
||||||
|
|
||||||
# homeassistant.components.homematic
|
# homeassistant.components.homematic
|
||||||
pyhomematic==0.1.60
|
pyhomematic==0.1.60
|
||||||
|
|
Loading…
Add table
Reference in a new issue