Upgrade python-mystrom to 0.4.2 (#13485)
This commit is contained in:
parent
9eda04b787
commit
06aded1a4d
3 changed files with 6 additions and 6 deletions
|
@ -15,7 +15,7 @@ from homeassistant.components.light import (
|
|||
ATTR_HS_COLOR)
|
||||
from homeassistant.const import CONF_HOST, CONF_MAC, CONF_NAME, STATE_UNKNOWN
|
||||
|
||||
REQUIREMENTS = ['python-mystrom==0.3.8']
|
||||
REQUIREMENTS = ['python-mystrom==0.4.2']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -43,7 +43,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Set up the myStrom Light platform."""
|
||||
from pymystrom import MyStromBulb
|
||||
from pymystrom.bulb import MyStromBulb
|
||||
from pymystrom.exceptions import MyStromConnectionError
|
||||
|
||||
host = config.get(CONF_HOST)
|
||||
|
|
|
@ -12,7 +12,7 @@ from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA)
|
|||
from homeassistant.const import (CONF_NAME, CONF_HOST)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
REQUIREMENTS = ['python-mystrom==0.3.8']
|
||||
REQUIREMENTS = ['python-mystrom==0.4.2']
|
||||
|
||||
DEFAULT_NAME = 'myStrom Switch'
|
||||
|
||||
|
@ -26,7 +26,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Find and return myStrom switch."""
|
||||
from pymystrom import MyStromPlug, exceptions
|
||||
from pymystrom.switch import MyStromPlug, exceptions
|
||||
|
||||
name = config.get(CONF_NAME)
|
||||
host = config.get(CONF_HOST)
|
||||
|
@ -45,7 +45,7 @@ class MyStromSwitch(SwitchDevice):
|
|||
|
||||
def __init__(self, name, resource):
|
||||
"""Initialize the myStrom switch."""
|
||||
from pymystrom import MyStromPlug
|
||||
from pymystrom.switch import MyStromPlug
|
||||
|
||||
self._name = name
|
||||
self._resource = resource
|
||||
|
|
|
@ -955,7 +955,7 @@ python-mpd2==0.5.5
|
|||
|
||||
# homeassistant.components.light.mystrom
|
||||
# homeassistant.components.switch.mystrom
|
||||
python-mystrom==0.3.8
|
||||
python-mystrom==0.4.2
|
||||
|
||||
# homeassistant.components.nest
|
||||
python-nest==3.7.0
|
||||
|
|
Loading…
Add table
Reference in a new issue