mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
* Bump python-miio version * Fix Xiaomi Power Strip V1 support (Closes: #13749)
This commit is contained in:
parent
816efa02d1
commit
e370d523ec
@ -20,7 +20,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
vol.Required(CONF_TOKEN): vol.All(cv.string, vol.Length(min=32, max=32)),
|
||||
})
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
|
||||
REQUIREMENTS = ['python-miio==0.4.0', 'construct==2.9.41']
|
||||
|
||||
|
||||
def get_scanner(hass, config):
|
||||
|
@ -49,7 +49,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
'zhimi.humidifier.ca1']),
|
||||
})
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
|
||||
REQUIREMENTS = ['python-miio==0.4.0', 'construct==2.9.41']
|
||||
|
||||
ATTR_MODEL = 'model'
|
||||
|
||||
|
@ -42,7 +42,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
'philips.light.candle2']),
|
||||
})
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
|
||||
REQUIREMENTS = ['python-miio==0.4.0', 'construct==2.9.41']
|
||||
|
||||
# The light does not accept cct values < 1
|
||||
CCT_MIN = 1
|
||||
|
@ -22,7 +22,7 @@ from homeassistant.exceptions import PlatformNotReady
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.util.dt import utcnow
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
|
||||
REQUIREMENTS = ['python-miio==0.4.0', 'construct==2.9.41']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -25,7 +25,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string,
|
||||
})
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
|
||||
REQUIREMENTS = ['python-miio==0.4.0', 'construct==2.9.41']
|
||||
|
||||
ATTR_POWER = 'power'
|
||||
ATTR_CHARGING = 'charging'
|
||||
|
@ -39,7 +39,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
'chuangmi.plug.v3']),
|
||||
})
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
|
||||
REQUIREMENTS = ['python-miio==0.4.0', 'construct==2.9.41']
|
||||
|
||||
ATTR_POWER = 'power'
|
||||
ATTR_TEMPERATURE = 'temperature'
|
||||
@ -142,7 +142,7 @@ async def async_setup_platform(hass, config, async_add_devices,
|
||||
|
||||
elif model in ['qmi.powerstrip.v1', 'zimi.powerstrip.v2']:
|
||||
from miio import PowerStrip
|
||||
plug = PowerStrip(host, token)
|
||||
plug = PowerStrip(host, token, model=model)
|
||||
device = XiaomiPowerStripSwitch(name, plug, model, unique_id)
|
||||
devices.append(device)
|
||||
hass.data[DATA_KEY][host] = device
|
||||
|
@ -19,7 +19,7 @@ from homeassistant.const import (
|
||||
ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_TOKEN, STATE_OFF, STATE_ON)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.3.9', 'construct==2.9.41']
|
||||
REQUIREMENTS = ['python-miio==0.4.0', 'construct==2.9.41']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -1029,7 +1029,7 @@ python-juicenet==0.0.5
|
||||
# homeassistant.components.sensor.xiaomi_miio
|
||||
# homeassistant.components.switch.xiaomi_miio
|
||||
# homeassistant.components.vacuum.xiaomi_miio
|
||||
python-miio==0.3.9
|
||||
python-miio==0.4.0
|
||||
|
||||
# homeassistant.components.media_player.mpd
|
||||
python-mpd2==1.0.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user