mirror of
https://github.com/house-of-vanity/lywsd03mmc_exporter.git
synced 2025-07-06 06:54:07 +00:00
MI monitor::update depricated method
This commit is contained in:
@ -52,7 +52,7 @@ class AppMetrics:
|
||||
for mac, location in self.devices:
|
||||
log.info(f"Fetching '{mac}' ({location})")
|
||||
p = btle.Peripheral()
|
||||
p.setDelegate(XiaoMiTemp(mac, location, self.temperature, self.humidity, self.battery))
|
||||
p.withDelegate(XiaoMiTemp(mac, location, self.temperature, self.humidity, self.battery))
|
||||
|
||||
# BLE performs very poorly, constant errors are not uncommon
|
||||
for attempt in range(10):
|
||||
|
Reference in New Issue
Block a user