Upgrade construct to 2.9.45 (#16362)
This commit is contained in:
1 parent
93e3596e5a
commit
8d9da4e7b9
10 files changed
+45
-46
No files matched your search
@@ -5,23 +5,24 @@ For more details about this platform, please refer to the documentation
|
||||
https://home-assistant.io/components/light.xiaomi_miio/
|
||||
"""
|
||||
import asyncio
|
||||
import datetime
|
||||
from datetime import timedelta
|
||||
from functools import partial
|
||||
import logging
|
||||
from math import ceil
|
||||
from datetime import timedelta
|
||||
import datetime
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.components.light import (
|
||||
PLATFORM_SCHEMA, ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS,
|
||||
ATTR_COLOR_TEMP, SUPPORT_COLOR_TEMP, Light, ATTR_ENTITY_ID, DOMAIN, )
|
||||
|
||||
from homeassistant.const import (CONF_NAME, CONF_HOST, CONF_TOKEN, )
|
||||
ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_ENTITY_ID, DOMAIN, PLATFORM_SCHEMA,
|
||||
SUPPORT_BRIGHTNESS, SUPPORT_COLOR_TEMP, Light)
|
||||
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_TOKEN
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.util import dt
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.4.2', 'construct==2.9.45']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
DEFAULT_NAME = 'Xiaomi Philips Light'
|
||||
@@ -43,8 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
'philips.light.mono1']),
|
||||
})
|
||||
|
||||
REQUIREMENTS = ['python-miio==0.4.2', 'construct==2.9.41']
|
||||
|
||||
# The light does not accept cct values < 1
|
||||
CCT_MIN = 1
|
||||
CCT_MAX = 100
|
||||
|
||||
Reference in new issue
Block a user