Closed chemelli74 closed 2 years ago
At @kbr, do you think it can be merged ? Thx in advance,
Simone
@kbr, conflict fixed, ready for merging ;-)
Can we kindly progress with this PR please ?
Thx in advance,
Simone
I suppose to use the more pythonic EAFP-way:
@property
def device_supports_mesh(self):
"""
Return True if the device supports mesh (by checking to be able
to provide a MeshListPath) otherwise return False.
"""
try:
return (
"X_AVM-DE_GetMeshListPath"
in self.fc.services["Hosts1"].actions
)
except KeyError:
return False
Code updated as per latest comment
File should end with an empty line.
Very true, ;-) Would love to add a pre-commit with black and few other things...
Simone
No black after starting a project. This will give a diff-desaster. But running tests via github-integration are in preparation.
Add a method to know if the device is able to support mesh network of not
cc @mib1185