Skip to content

Commit a3518ca

Browse files
committed
feat: Add diagnostics library for tracking stats/counters
Add a generic library that can be used to track counters, or elapsed time (e.g. how long it takes on average to connect to mqtt). This is a copy of https://github.com/allenporter/python-google-nest-sdm/blob/main/google_nest_sdm/diagnostics.py This is an initial pass to add a few initial example metrics for MQTT, but we can add more as we need fine grained details in diagnostics.
1 parent fd26ad1 commit a3518ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/devices/device_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
UserData,
1717
)
1818
from roborock.devices.device import DeviceReadyCallback, RoborockDevice
19-
from roborock.exceptions import RoborockException
2019
from roborock.diagnostics import Diagnostics
20+
from roborock.exceptions import RoborockException
2121
from roborock.map.map_parser import MapParserConfig
2222
from roborock.mqtt.roborock_session import create_lazy_mqtt_session
2323
from roborock.mqtt.session import MqttSession

0 commit comments

Comments
 (0)