Adds support for routers implementing IGDv2 (#16108)

* Adds support for IGDv2

* bump pyupnp_async

* bump pyupnp_async

* better debug

* fix test
This commit is contained in:
Diogo Gomes authored and Paulus Schoutsen committed 2018-08-23 10:54:02 +02:00
1 parent 4155e8a31f
commit ced5eeacc2
4 files changed
+18 -9

No files matched your search

+7 -2
View File
@@ -102,7 +102,8 @@ async def test_setup_succeeds_if_specify_ip(hass, mock_msearch_first):
return_value='127.0.0.1'):
result = await async_setup_component(hass, 'upnp', {
'upnp': {
'local_ip': '192.168.0.10'
'local_ip': '192.168.0.10',
'port_mapping': 'True'
}
})
@@ -118,7 +119,9 @@ async def test_no_config_maps_hass_local_to_remote_port(hass,
mock_msearch_first):
"""Test by default we map local to remote port."""
result = await async_setup_component(hass, 'upnp', {
'upnp': {}
'upnp': {
'port_mapping': 'True'
}
})
assert result
@@ -134,6 +137,7 @@ async def test_map_hass_to_remote_port(hass,
"""Test mapping hass to remote port."""
result = await async_setup_component(hass, 'upnp', {
'upnp': {
'port_mapping': 'True',
'ports': {
'hass': 1000
}
@@ -157,6 +161,7 @@ async def test_map_internal_to_remote_ports(hass,
result = await async_setup_component(hass, 'upnp', {
'upnp': {
'port_mapping': 'True',
'ports': ports
}
})