mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Update service domain for mill from 'climate' to 'mill' (#29132)
This commit is contained in:
parent
a08df53dbc
commit
59939004bf
@ -412,6 +412,7 @@ omit =
|
|||||||
homeassistant/components/miflora/sensor.py
|
homeassistant/components/miflora/sensor.py
|
||||||
homeassistant/components/mikrotik/*
|
homeassistant/components/mikrotik/*
|
||||||
homeassistant/components/mill/climate.py
|
homeassistant/components/mill/climate.py
|
||||||
|
homeassistant/components/mill/const.py
|
||||||
homeassistant/components/minio/*
|
homeassistant/components/minio/*
|
||||||
homeassistant/components/mitemp_bt/sensor.py
|
homeassistant/components/mitemp_bt/sensor.py
|
||||||
homeassistant/components/mjpeg/camera.py
|
homeassistant/components/mjpeg/camera.py
|
||||||
|
@ -72,22 +72,6 @@ set_swing_mode:
|
|||||||
swing_mode:
|
swing_mode:
|
||||||
description: New value of swing mode.
|
description: New value of swing mode.
|
||||||
|
|
||||||
mill_set_room_temperature:
|
|
||||||
description: Set Mill room temperatures.
|
|
||||||
fields:
|
|
||||||
room_name:
|
|
||||||
description: Name of room to change.
|
|
||||||
example: 'kitchen'
|
|
||||||
away_temp:
|
|
||||||
description: Away temp.
|
|
||||||
example: 12
|
|
||||||
comfort_temp:
|
|
||||||
description: Comfort temp.
|
|
||||||
example: 22
|
|
||||||
sleep_temp:
|
|
||||||
description: Sleep temp.
|
|
||||||
example: 17
|
|
||||||
|
|
||||||
nuheat_resume_program:
|
nuheat_resume_program:
|
||||||
description: Resume the programmed schedule.
|
description: Resume the programmed schedule.
|
||||||
fields:
|
fields:
|
||||||
|
@ -6,7 +6,6 @@ import voluptuous as vol
|
|||||||
|
|
||||||
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice
|
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice
|
||||||
from homeassistant.components.climate.const import (
|
from homeassistant.components.climate.const import (
|
||||||
DOMAIN,
|
|
||||||
HVAC_MODE_HEAT,
|
HVAC_MODE_HEAT,
|
||||||
HVAC_MODE_OFF,
|
HVAC_MODE_OFF,
|
||||||
SUPPORT_FAN_MODE,
|
SUPPORT_FAN_MODE,
|
||||||
@ -22,15 +21,18 @@ from homeassistant.const import (
|
|||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
from .const import (
|
||||||
|
ATTR_AWAY_TEMP,
|
||||||
|
ATTR_COMFORT_TEMP,
|
||||||
|
ATTR_ROOM_NAME,
|
||||||
|
ATTR_SLEEP_TEMP,
|
||||||
|
DOMAIN,
|
||||||
|
MAX_TEMP,
|
||||||
|
MIN_TEMP,
|
||||||
|
SERVICE_SET_ROOM_TEMP,
|
||||||
|
)
|
||||||
|
|
||||||
ATTR_AWAY_TEMP = "away_temp"
|
_LOGGER = logging.getLogger(__name__)
|
||||||
ATTR_COMFORT_TEMP = "comfort_temp"
|
|
||||||
ATTR_ROOM_NAME = "room_name"
|
|
||||||
ATTR_SLEEP_TEMP = "sleep_temp"
|
|
||||||
MAX_TEMP = 35
|
|
||||||
MIN_TEMP = 5
|
|
||||||
SERVICE_SET_ROOM_TEMP = "mill_set_room_temperature"
|
|
||||||
|
|
||||||
SUPPORT_FLAGS = SUPPORT_TARGET_TEMPERATURE | SUPPORT_FAN_MODE
|
SUPPORT_FLAGS = SUPPORT_TARGET_TEMPERATURE | SUPPORT_FAN_MODE
|
||||||
|
|
||||||
|
10
homeassistant/components/mill/const.py
Normal file
10
homeassistant/components/mill/const.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
"""Constants for the Mill heater component."""
|
||||||
|
|
||||||
|
ATTR_AWAY_TEMP = "away_temp"
|
||||||
|
ATTR_COMFORT_TEMP = "comfort_temp"
|
||||||
|
ATTR_ROOM_NAME = "room_name"
|
||||||
|
ATTR_SLEEP_TEMP = "sleep_temp"
|
||||||
|
MAX_TEMP = 35
|
||||||
|
MIN_TEMP = 5
|
||||||
|
DOMAIN = "mill"
|
||||||
|
SERVICE_SET_ROOM_TEMP = "set_room_temperature"
|
@ -0,0 +1,15 @@
|
|||||||
|
set_room_temperature:
|
||||||
|
description: Set Mill room temperatures.
|
||||||
|
fields:
|
||||||
|
room_name:
|
||||||
|
description: Name of room to change.
|
||||||
|
example: 'kitchen'
|
||||||
|
away_temp:
|
||||||
|
description: Away temp.
|
||||||
|
example: 12
|
||||||
|
comfort_temp:
|
||||||
|
description: Comfort temp.
|
||||||
|
example: 22
|
||||||
|
sleep_temp:
|
||||||
|
description: Sleep temp.
|
||||||
|
example: 17
|
Loading…
x
Reference in New Issue
Block a user