Bump python-miio version (Closes: #13749) (#14796)

* Bump python-miio version

* Fix Xiaomi Power Strip V1 support (Closes: #13749)
This commit is contained in:
Sebastian Muszynski 2018-06-04 23:50:18 +02:00 committed by Teemu R
parent 816efa02d1
commit e370d523ec
8 changed files with 9 additions and 9 deletions

View File

@ -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):

View File

@ -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'

View File

@ -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

View File

@ -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__)

View File

@ -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'

View File

@ -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

View File

@ -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__)

View File

@ -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