Skip to content

Commit

Permalink
Reduce maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Jun 2, 2024
1 parent 77dc45c commit e71d048
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions async_upnp_client/profiles/igd.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,21 +720,14 @@ async def async_get_traffic_and_status_data(
* bytes per second sent (derived from last update)
* packets per second received (derived from last update)
* packets per second sent (derived from last update)
* status info:
* connection status
* uptime
* connection status (status info)
* last connection error (status info)
* uptime (status info)
* external IP address
* number of port mapping entries
"""
# pylint: disable=too-many-locals
items = items or {
IgdStateItem.BYTES_RECEIVED,
IgdStateItem.BYTES_SENT,
IgdStateItem.PACKETS_RECEIVED,
IgdStateItem.PACKETS_SENT,
IgdStateItem.CONNECTION_STATUS,
IgdStateItem.LAST_CONNECTION_ERROR,
IgdStateItem.UPTIME,
IgdStateItem.EXTERNAL_IP_ADDRESS,
}
items = items or set(IgdStateItem)

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

View check run for this annotation

Codecov / codecov/patch

async_upnp_client/profiles/igd.py#L730

Added line #L730 was not covered by tests

async def nop() -> None:
"""Pass."""
Expand Down

0 comments on commit e71d048

Please sign in to comment.