mirror of
https://github.com/house-of-vanity/lywsd03mmc_exporter.git
synced 2025-07-07 07:14:09 +00:00
Merge pull request #1 from Sanapach/main
MI monitor::update depricated method
This commit is contained in:
@ -52,7 +52,7 @@ class AppMetrics:
|
|||||||
for mac, location in self.devices:
|
for mac, location in self.devices:
|
||||||
log.info(f"Fetching '{mac}' ({location})")
|
log.info(f"Fetching '{mac}' ({location})")
|
||||||
p = btle.Peripheral()
|
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
|
# BLE performs very poorly, constant errors are not uncommon
|
||||||
for attempt in range(10):
|
for attempt in range(10):
|
||||||
|
Reference in New Issue
Block a user