Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/wemo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Belkin WeMo",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/wemo",
"requirements": ["pywemo==0.6.7"],
"requirements": ["pywemo==0.7.0"],
"ssdp": [
{
"manufacturer": "Belkin International Inc."
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ pyvolumio==0.1.3
pywebpush==1.9.2

# homeassistant.components.wemo
pywemo==0.6.7
pywemo==0.7.0

# homeassistant.components.wilight
pywilight==0.0.70
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ pyvolumio==0.1.3
pywebpush==1.9.2

# homeassistant.components.wemo
pywemo==0.6.7
pywemo==0.7.0

# homeassistant.components.wilight
pywilight==0.0.70
Expand Down
2 changes: 1 addition & 1 deletion tests/components/wemo/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def pywemo_device_fixture(pywemo_registry, pywemo_model):
device.port = MOCK_PORT
device.name = MOCK_NAME
device.serialnumber = MOCK_SERIAL_NUMBER
device.model_name = pywemo_model
device.model_name = pywemo_model.replace("LongPress", "")
device.get_state.return_value = 0 # Default to Off
device.supports_long_press.return_value = cls.supports_long_press()

Expand Down
10 changes: 5 additions & 5 deletions tests/components/wemo/test_device_trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
from pywemo.subscribe import EVENT_TYPE_LONG_PRESS

from homeassistant.components.automation import DOMAIN as AUTOMATION_DOMAIN
from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN
from homeassistant.components.wemo.const import DOMAIN, WEMO_SUBSCRIPTION_EVENT
from homeassistant.const import (
CONF_DEVICE_ID,
CONF_DOMAIN,
CONF_ENTITY_ID,
CONF_PLATFORM,
CONF_TYPE,
Platform,
)
from homeassistant.setup import async_setup_component

Expand All @@ -26,8 +26,8 @@

@pytest.fixture
def pywemo_model():
"""Pywemo Dimmer models use the light platform (WemoDimmer class)."""
return "Dimmer"
"""Pywemo LightSwitch models use the switch platform."""
return "LightSwitchLongPress"


async def setup_automation(hass, device_id, trigger_type):
Expand Down Expand Up @@ -67,14 +67,14 @@ async def test_get_triggers(hass, wemo_entity):
},
{
CONF_DEVICE_ID: wemo_entity.device_id,
CONF_DOMAIN: LIGHT_DOMAIN,
CONF_DOMAIN: Platform.SWITCH,
CONF_ENTITY_ID: wemo_entity.entity_id,
CONF_PLATFORM: "device",
CONF_TYPE: "turned_off",
},
{
CONF_DEVICE_ID: wemo_entity.device_id,
CONF_DOMAIN: LIGHT_DOMAIN,
CONF_DOMAIN: Platform.SWITCH,
CONF_ENTITY_ID: wemo_entity.entity_id,
CONF_PLATFORM: "device",
CONF_TYPE: "turned_on",
Expand Down
4 changes: 2 additions & 2 deletions tests/components/wemo/test_wemo_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

@pytest.fixture
def pywemo_model():
"""Pywemo Dimmer models use the light platform (WemoDimmer class)."""
return "Dimmer"
"""Pywemo LightSwitch models use the switch platform."""
return "LightSwitchLongPress"


async def test_async_register_device_longpress_fails(hass, pywemo_device):
Expand Down