File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3030class NetsapiensDeviceFilter :
3131 """Logic of finding the device entry for WebTrit in the list of devices"""
3232
33- def __init__ (self , pattern : str = "WebTrit " ):
33+ def __init__ (self , pattern : str = "wt " ):
3434 # Marker of the correct device entry in the list of devices
3535 self .pattern = pattern
3636
3737 def find_device_entry (self , devices : List [Dict ]) -> Optional [Dict ]:
3838 """Find the device entry that matches the pattern"""
39- return next ((device for device in devices if self . pattern == device .get ("name-full-name " , "" )), None )
39+ return next ((device for device in devices if device .get ("device " , "" ). endswith ( self . pattern )), None )
4040
4141class NetsapiensClient (BaseModel ):
4242 client_id : str = Field (default = None ,
You can’t perform that action at this time.
0 commit comments