mirror of
https://github.com/suaveolent/hoymiles-wifi.git
synced 2024-09-19 19:00:17 +00:00
fix network select enum
This commit is contained in:
parent
1e8d3635e7
commit
b35e59adab
@ -56,6 +56,10 @@ class NetmodeSelect(Enum):
|
||||
SIM = 2
|
||||
LAN = 3
|
||||
|
||||
def __int__(self):
|
||||
"""Return the integer value of the network mode selection."""
|
||||
return self.value
|
||||
|
||||
|
||||
class NetworkState(Enum):
|
||||
"""Network state."""
|
||||
|
Loading…
Reference in New Issue
Block a user