core: change AdvertisingData.get default raw behavior to False

This commit is contained in:
Abel Lucas
2022-10-31 20:49:41 +00:00
parent fc331b7aea
commit ce9472bf42
4 changed files with 13 additions and 13 deletions

View File

@@ -877,9 +877,9 @@ class ScanResult:
else:
type_color = colors.cyan
name = self.ad_data.get(AdvertisingData.COMPLETE_LOCAL_NAME)
name = self.ad_data.get(AdvertisingData.COMPLETE_LOCAL_NAME, raw=True)
if name is None:
name = self.ad_data.get(AdvertisingData.SHORTENED_LOCAL_NAME)
name = self.ad_data.get(AdvertisingData.SHORTENED_LOCAL_NAME, raw=True)
if name:
# Convert to string
try: