Skip to content

Commit 45d1f12

Browse files
author
Bernhard Kaindl
committed
Fix ConnectionType for "gsm" to match DeviceType.MODEM
Apply the same kind of fix like in #36 for ETHERNET where we fixed ConnectionType.ETHERNET to match DeviceType.ETHERNET: Use ConnectionType.MODEM to match DeviceType.MODEM for use with getattr() like shown in #36: `getattr(ConnectionType, "MODEM")`. Like with the rename from .WIRED to .ETHERNET in #36, this rename from .GSM to .MODEM is ok because the Enum ConnectionType is new, and wasn't in a release of this library yet.
1 parent ed2d179 commit 45d1f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdbus_async/networkmanager/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ class ConnectionType(str, Enum):
507507
* CDMA
508508
* DUMMY
509509
* ETHERNET
510-
* GSM
510+
* MODEM
511511
* INFINIBAND
512512
* IP_TUNNEL
513513
* MACSEC
@@ -537,7 +537,7 @@ class ConnectionType(str, Enum):
537537
CDMA = "cdma"
538538
DUMMY = "dummy"
539539
ETHERNET = "802-3-ethernet"
540-
GSM = "gsm"
540+
MODEM = "gsm"
541541
INFINIBAND = "infiniband"
542542
IP_TUNNEL = "ip-tunnel"
543543
MACSEC = "macsec"

0 commit comments

Comments
 (0)