mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Upgrade python-mystrom to 0.4.2 (#13485)
This commit is contained in:
parent
9eda04b787
commit
06aded1a4d
@ -15,7 +15,7 @@ from homeassistant.components.light import (
|
|||||||
ATTR_HS_COLOR)
|
ATTR_HS_COLOR)
|
||||||
from homeassistant.const import CONF_HOST, CONF_MAC, CONF_NAME, STATE_UNKNOWN
|
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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the myStrom Light platform."""
|
"""Set up the myStrom Light platform."""
|
||||||
from pymystrom import MyStromBulb
|
from pymystrom.bulb import MyStromBulb
|
||||||
from pymystrom.exceptions import MyStromConnectionError
|
from pymystrom.exceptions import MyStromConnectionError
|
||||||
|
|
||||||
host = config.get(CONF_HOST)
|
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)
|
from homeassistant.const import (CONF_NAME, CONF_HOST)
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['python-mystrom==0.3.8']
|
REQUIREMENTS = ['python-mystrom==0.4.2']
|
||||||
|
|
||||||
DEFAULT_NAME = 'myStrom Switch'
|
DEFAULT_NAME = 'myStrom Switch'
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Find and return myStrom switch."""
|
"""Find and return myStrom switch."""
|
||||||
from pymystrom import MyStromPlug, exceptions
|
from pymystrom.switch import MyStromPlug, exceptions
|
||||||
|
|
||||||
name = config.get(CONF_NAME)
|
name = config.get(CONF_NAME)
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
@ -45,7 +45,7 @@ class MyStromSwitch(SwitchDevice):
|
|||||||
|
|
||||||
def __init__(self, name, resource):
|
def __init__(self, name, resource):
|
||||||
"""Initialize the myStrom switch."""
|
"""Initialize the myStrom switch."""
|
||||||
from pymystrom import MyStromPlug
|
from pymystrom.switch import MyStromPlug
|
||||||
|
|
||||||
self._name = name
|
self._name = name
|
||||||
self._resource = resource
|
self._resource = resource
|
||||||
|
@ -955,7 +955,7 @@ python-mpd2==0.5.5
|
|||||||
|
|
||||||
# homeassistant.components.light.mystrom
|
# homeassistant.components.light.mystrom
|
||||||
# homeassistant.components.switch.mystrom
|
# homeassistant.components.switch.mystrom
|
||||||
python-mystrom==0.3.8
|
python-mystrom==0.4.2
|
||||||
|
|
||||||
# homeassistant.components.nest
|
# homeassistant.components.nest
|
||||||
python-nest==3.7.0
|
python-nest==3.7.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user