add handler for org.freedesktop.DBus.Error.AccessDenied in ble

This commit is contained in:
matt committed 2026-10-15 07:41:00 -07:00
1 parent ddb28bb59e
commit 154625b06a
1 file changed
+2
+2
View File
@@ -209,6 +209,8 @@ def sensor_data_query(mac_list: List[str]) -> List[dict]:
except Exception as e:
print(f"Error reading BLE data - {e}")
this_result = None
if "org.freedesktop.DBus.Error.AccessDenied" in e:
return result
if this_result:
result.append(
{"name": mac, "temp": this_result.temperature, "humidity": this_result.humidity}