From 141e9e0636a6489378febd35e2a47d37ae1e9011 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Mon, 20 Sep 2021 16:11:48 +0300 Subject: [PATCH] Fix stats for BLE --- custom_components/xiaomi_gateway3/core/gateway3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_gateway3/core/gateway3.py b/custom_components/xiaomi_gateway3/core/gateway3.py index 5e94dcc9..4de7617f 100644 --- a/custom_components/xiaomi_gateway3/core/gateway3.py +++ b/custom_components/xiaomi_gateway3/core/gateway3.py @@ -418,7 +418,7 @@ def process_ble_payload(self, device: dict, payload: dict): entity.update(payload) if self.stats_enable: - self.add_stats(device, 'ble') + self.add_stats(device) self.process_ble_stats(mac)