Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Jan 24, 2025
1 parent ecc73cf commit ffd639b
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions async_upnp_client/profiles/igd.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ async def async_get_external_ip_address(
"""
Get the external IP address.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 410 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L410

Added line #L410 was not covered by tests
action = self._any_action(services, "GetExternalIPAddress")
Expand All @@ -422,7 +423,8 @@ async def async_get_generic_port_mapping_entry(
Get generic port mapping entry.
:param port_mapping_index Index of port mapping entry
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 429 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L429

Added line #L429 was not covered by tests
action = self._any_action(services, "GetGenericPortMappingEntry")
Expand Down Expand Up @@ -462,7 +464,8 @@ async def async_get_specific_port_mapping_entry(
:param remote_host Address of remote host or None
:param external_port External port
:param protocol Protocol, 'TCP' or 'UDP'
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 470 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L470

Added line #L470 was not covered by tests
action = self._any_action(services, "GetSpecificPortMappingEntry")
Expand Down Expand Up @@ -512,7 +515,8 @@ async def async_add_port_mapping(
:param enabled Port mapping enabled
:param description Description for port mapping
:param lease_duration Lease duration
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
# pylint: disable=too-many-arguments,too-many-positional-arguments
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 522 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L522

Added line #L522 was not covered by tests
Expand Down Expand Up @@ -544,7 +548,8 @@ async def async_delete_port_mapping(
:param remote_host Address of remote host or None
:param external_port External port
:param protocol Protocol, 'TCP' or 'UDP'
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 554 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L554

Added line #L554 was not covered by tests
action = self._any_action(services, "DeletePortMapping")
Expand Down Expand Up @@ -632,7 +637,8 @@ async def async_get_connection_type_info(
"""
Get connection type info.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 643 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L643

Added line #L643 was not covered by tests
action = self._any_action(services, "GetConnectionTypeInfo")
Expand All @@ -651,7 +657,8 @@ async def async_set_connection_type(
Set connection type.
:param connection_type connection type
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 663 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L663

Added line #L663 was not covered by tests
action = self._any_action(services, "SetConnectionType")
Expand All @@ -666,7 +673,8 @@ async def async_request_connection(
"""
Request connection.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 679 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L679

Added line #L679 was not covered by tests
action = self._any_action(services, "RequestConnection")
Expand All @@ -681,7 +689,8 @@ async def async_request_termination(
"""
Request connection termination.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 695 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L695

Added line #L695 was not covered by tests
action = self._any_action(services, "RequestTermination")
Expand All @@ -696,7 +705,8 @@ async def async_force_termination(
"""
Force connection termination.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 711 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L711

Added line #L711 was not covered by tests
action = self._any_action(services, "ForceTermination")
Expand All @@ -711,7 +721,8 @@ async def async_get_status_info(
"""
Get status info.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]
action = self._any_action(services, "GetStatusInfo")
Expand All @@ -738,7 +749,8 @@ async def async_get_port_mapping_number_of_entries(
Note that this action is not officially supported by the IGD specification.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 755 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L755

Added line #L755 was not covered by tests
action = self._any_action(services, "GetPortMappingNumberOfEntries")
Expand All @@ -759,7 +771,8 @@ async def async_get_nat_rsip_status(
"""
Get NAT enabled and RSIP availability statuses.
:param services List of service names to try to get action from, defaults to [WANIPC,WANPPPC]
:param services List of service names to try to get action from,
defaults to [WANIPC,WANPPPC]
"""
services = services or ["WANIPC", "WANPPPC"]

Check warning on line 777 in async_upnp_client/profiles/igd.py

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L777

Added line #L777 was not covered by tests
action = self._any_action(services, "GetNATRSIPStatus")
Expand Down

0 comments on commit ffd639b

Please sign in to comment.