mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Bump python-miio version (#22202)
* Bump python-miio version * Rename speed property to motor_speed * Enable set_led service of the Air Humidifier * Allow a favorite level in [0...17] * Allow a scene in [0...6]
This commit is contained in:
parent
21871b3d6b
commit
f4102339c1
@ -8,7 +8,7 @@ from homeassistant.components.device_tracker import (
|
|||||||
from homeassistant.const import CONF_HOST, CONF_TOKEN
|
from homeassistant.const import CONF_HOST, CONF_TOKEN
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['python-miio==0.4.4', 'construct==2.9.45']
|
REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ from homeassistant.const import (CONF_NAME, CONF_HOST, CONF_TOKEN,
|
|||||||
from homeassistant.exceptions import PlatformNotReady
|
from homeassistant.exceptions import PlatformNotReady
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['python-miio==0.4.4', 'construct==2.9.45']
|
REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -227,7 +227,7 @@ AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER = {
|
|||||||
|
|
||||||
AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_CA = {
|
AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_CA = {
|
||||||
**AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_COMMON,
|
**AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_COMMON,
|
||||||
ATTR_MOTOR_SPEED: 'speed',
|
ATTR_MOTOR_SPEED: 'motor_speed',
|
||||||
ATTR_DEPTH: 'depth',
|
ATTR_DEPTH: 'depth',
|
||||||
ATTR_DRY: 'dry',
|
ATTR_DRY: 'dry',
|
||||||
}
|
}
|
||||||
@ -305,6 +305,7 @@ FEATURE_FLAGS_AIRPURIFIER_V3 = (FEATURE_SET_BUZZER |
|
|||||||
|
|
||||||
FEATURE_FLAGS_AIRHUMIDIFIER = (FEATURE_SET_BUZZER |
|
FEATURE_FLAGS_AIRHUMIDIFIER = (FEATURE_SET_BUZZER |
|
||||||
FEATURE_SET_CHILD_LOCK |
|
FEATURE_SET_CHILD_LOCK |
|
||||||
|
FEATURE_SET_LED |
|
||||||
FEATURE_SET_LED_BRIGHTNESS |
|
FEATURE_SET_LED_BRIGHTNESS |
|
||||||
FEATURE_SET_TARGET_HUMIDITY)
|
FEATURE_SET_TARGET_HUMIDITY)
|
||||||
|
|
||||||
@ -348,7 +349,7 @@ SERVICE_SCHEMA_LED_BRIGHTNESS = AIRPURIFIER_SERVICE_SCHEMA.extend({
|
|||||||
|
|
||||||
SERVICE_SCHEMA_FAVORITE_LEVEL = AIRPURIFIER_SERVICE_SCHEMA.extend({
|
SERVICE_SCHEMA_FAVORITE_LEVEL = AIRPURIFIER_SERVICE_SCHEMA.extend({
|
||||||
vol.Required(ATTR_LEVEL):
|
vol.Required(ATTR_LEVEL):
|
||||||
vol.All(vol.Coerce(int), vol.Clamp(min=0, max=16))
|
vol.All(vol.Coerce(int), vol.Clamp(min=0, max=17))
|
||||||
})
|
})
|
||||||
|
|
||||||
SERVICE_SCHEMA_VOLUME = AIRPURIFIER_SERVICE_SCHEMA.extend({
|
SERVICE_SCHEMA_VOLUME = AIRPURIFIER_SERVICE_SCHEMA.extend({
|
||||||
|
@ -16,7 +16,7 @@ from homeassistant.exceptions import PlatformNotReady
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.util import color, dt
|
from homeassistant.util import color, dt
|
||||||
|
|
||||||
REQUIREMENTS = ['python-miio==0.4.4', 'construct==2.9.45']
|
REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ XIAOMI_MIIO_SERVICE_SCHEMA = vol.Schema({
|
|||||||
|
|
||||||
SERVICE_SCHEMA_SET_SCENE = XIAOMI_MIIO_SERVICE_SCHEMA.extend({
|
SERVICE_SCHEMA_SET_SCENE = XIAOMI_MIIO_SERVICE_SCHEMA.extend({
|
||||||
vol.Required(ATTR_SCENE):
|
vol.Required(ATTR_SCENE):
|
||||||
vol.All(vol.Coerce(int), vol.Clamp(min=1, max=4))
|
vol.All(vol.Coerce(int), vol.Clamp(min=1, max=6))
|
||||||
})
|
})
|
||||||
|
|
||||||
SERVICE_SCHEMA_SET_DELAYED_TURN_OFF = XIAOMI_MIIO_SERVICE_SCHEMA.extend({
|
SERVICE_SCHEMA_SET_DELAYED_TURN_OFF = XIAOMI_MIIO_SERVICE_SCHEMA.extend({
|
||||||
|
@ -17,7 +17,7 @@ from homeassistant.exceptions import PlatformNotReady
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.util.dt import utcnow
|
from homeassistant.util.dt import utcnow
|
||||||
|
|
||||||
REQUIREMENTS = ['python-miio==0.4.4', 'construct==2.9.45']
|
REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from homeassistant.exceptions import PlatformNotReady
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
REQUIREMENTS = ['python-miio==0.4.4', 'construct==2.9.45']
|
REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ from homeassistant.const import (
|
|||||||
from homeassistant.exceptions import PlatformNotReady
|
from homeassistant.exceptions import PlatformNotReady
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['python-miio==0.4.4', 'construct==2.9.45']
|
REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ from homeassistant.const import (
|
|||||||
ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_TOKEN, STATE_OFF, STATE_ON)
|
ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_TOKEN, STATE_OFF, STATE_ON)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['python-miio==0.4.4', 'construct==2.9.45']
|
REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1354,7 +1354,7 @@ python-juicenet==0.0.5
|
|||||||
# homeassistant.components.xiaomi_miio.sensor
|
# homeassistant.components.xiaomi_miio.sensor
|
||||||
# homeassistant.components.xiaomi_miio.switch
|
# homeassistant.components.xiaomi_miio.switch
|
||||||
# homeassistant.components.xiaomi_miio.vacuum
|
# homeassistant.components.xiaomi_miio.vacuum
|
||||||
python-miio==0.4.4
|
python-miio==0.4.5
|
||||||
|
|
||||||
# homeassistant.components.mpd.media_player
|
# homeassistant.components.mpd.media_player
|
||||||
python-mpd2==1.0.0
|
python-mpd2==1.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user