From f55de1f5bd6dc2cd7b7e43e639981a7b43d42e77 Mon Sep 17 00:00:00 2001 From: Ernst Klamer Date: Sat, 24 Feb 2024 09:12:47 +0100 Subject: [PATCH 1/2] Fix last packet id --- custom_components/ble_monitor/sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/ble_monitor/sensor.py b/custom_components/ble_monitor/sensor.py index 262d483a8..7ee9be1da 100644 --- a/custom_components/ble_monitor/sensor.py +++ b/custom_components/ble_monitor/sensor.py @@ -990,7 +990,7 @@ def collect(self, data, period_cnt, batt_attr=None): return self._state = data[self.entity_description.key] self._extra_state_attributes["sensor_type"] = data["type"] - self._extra_state_attributes["last_packet id"] = data["packet"] + self._extra_state_attributes["last_packet_id"] = data["packet"] self._extra_state_attributes["firmware"] = data["firmware"] self._extra_state_attributes['mac_address' if self.is_beacon else 'uuid'] = dict_get_or_normalize( data, CONF_MAC, CONF_UUID @@ -1105,7 +1105,7 @@ def collect(self, data, period_cnt, batt_attr=None): else: self.pending_update = False return - self._extra_state_attributes["last_packet id"] = data["packet"] + self._extra_state_attributes["last_packet_id"] = data["packet"] self._extra_state_attributes["firmware"] = data["firmware"] self._extra_state_attributes['mac_address' if self.is_beacon else 'uuid'] = dict_get_or_normalize( data, CONF_MAC, CONF_UUID From bbbcd76619981ef7a3b9a5539099536dc724025c Mon Sep 17 00:00:00 2001 From: Ernst Klamer Date: Sat, 24 Feb 2024 09:14:02 +0100 Subject: [PATCH 2/2] Bump version --- custom_components/ble_monitor/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ble_monitor/manifest.json b/custom_components/ble_monitor/manifest.json index 7bedaa54b..d531d616a 100644 --- a/custom_components/ble_monitor/manifest.json +++ b/custom_components/ble_monitor/manifest.json @@ -14,5 +14,5 @@ "btsocket>=0.2.0", "pyric>=0.1.6.3" ], - "version": "12.9.0" + "version": "12.9.1" }