diff --git a/custom_components/ble_monitor/manifest.json b/custom_components/ble_monitor/manifest.json index 7bedaa54..d531d616 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" } diff --git a/custom_components/ble_monitor/sensor.py b/custom_components/ble_monitor/sensor.py index 262d483a..7ee9be1d 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