Change hive hotwater to hot_water + bug fix (#27038)
* Updated hotwater to hot_water + bug fix * Updated version seperating dependancypull/27051/head
parent
f464a78088
commit
2ebc1901ab
|
@ -23,7 +23,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||
DOMAIN = "hive"
|
||||
DATA_HIVE = "data_hive"
|
||||
SERVICES = ["Heating", "HotWater"]
|
||||
SERVICE_BOOST_HOTWATER = "boost_hotwater"
|
||||
SERVICE_BOOST_HOT_WATER = "boost_hot_water"
|
||||
SERVICE_BOOST_HEATING = "boost_heating"
|
||||
ATTR_TIME_PERIOD = "time_period"
|
||||
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.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)
|
||||
|
||||
def hotwater_boost(service):
|
||||
def hot_water_boost(service):
|
||||
"""Handle the service call."""
|
||||
node_id = HiveSession.entity_lookup.get(service.data[ATTR_ENTITY_ID])
|
||||
if not node_id:
|
||||
|
@ -151,9 +151,9 @@ def setup(hass, config):
|
|||
if ha_type == "water_heater":
|
||||
hass.services.register(
|
||||
DOMAIN,
|
||||
SERVICE_BOOST_HEATING,
|
||||
hotwater_boost,
|
||||
schema=BOOST_HOTWATER_SCHEMA,
|
||||
SERVICE_BOOST_HOT_WATER,
|
||||
hot_water_boost,
|
||||
schema=BOOST_HOT_WATER_SCHEMA,
|
||||
)
|
||||
|
||||
return True
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Hive",
|
||||
"documentation": "https://www.home-assistant.io/components/hive",
|
||||
"requirements": [
|
||||
"pyhiveapi==0.2.19"
|
||||
"pyhiveapi==0.2.19.2"
|
||||
],
|
||||
"dependencies": [],
|
||||
"codeowners": [
|
||||
|
|
|
@ -14,7 +14,7 @@ boost_heating:
|
|||
description: Set the target temperature for the boost period.,
|
||||
example: "20.5",
|
||||
}
|
||||
boost_hotwater:
|
||||
boost_hot_water:
|
||||
description:
|
||||
"Set the boost mode ON or OFF defining the period of time for the boost."
|
||||
fields:
|
||||
|
|
|
@ -1223,7 +1223,7 @@ pyheos==0.6.0
|
|||
pyhik==0.2.3
|
||||
|
||||
# homeassistant.components.hive
|
||||
pyhiveapi==0.2.19
|
||||
pyhiveapi==0.2.19.2
|
||||
|
||||
# homeassistant.components.homematic
|
||||
pyhomematic==0.1.60
|
||||
|
|
Loading…
Reference in New Issue