mirror of
https://github.com/Tafkas/fritzbox-munin.git
synced 2023-10-10 13:36:55 +02:00
Removed type hints to not kill Python 2 compatibility
This commit is contained in:
parent
cae8b920ff
commit
0912a230dd
@ -20,7 +20,14 @@ import sys
|
|||||||
from fritzconnection import FritzConnection
|
from fritzconnection import FritzConnection
|
||||||
|
|
||||||
|
|
||||||
def model_needs_login(model: str) -> bool:
|
def model_needs_login(model):
|
||||||
|
"""
|
||||||
|
Checks if provided fritzbox model is in the list of devices which need an authenticated login
|
||||||
|
to extract traffic data.
|
||||||
|
|
||||||
|
:param model: String describing the fritzbox model; as returned from FritzConnection().modelname
|
||||||
|
:return bool
|
||||||
|
"""
|
||||||
models_require_login = [
|
models_require_login = [
|
||||||
"FRITZ!Box 6490 Cable",
|
"FRITZ!Box 6490 Cable",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user