fix: update device serial number in JackeryHome sensor
- Changed the device serial number from an empty string to a specific value for improved identification and functionality.
This commit is contained in:
@@ -208,7 +208,7 @@ class JackeryHomeSensor(SensorEntity):
|
||||
self._attr_native_value = None
|
||||
self._attr_available = False
|
||||
self._data_task = None
|
||||
self._device_sn = "" # 设备序列号(从 LWT 消息中获取)
|
||||
self._device_sn = "26392658575364" # 设备序列号(从 LWT 消息中获取)
|
||||
self._attr_should_poll = False
|
||||
self._attr_has_entity_name = True
|
||||
# 获取 meter_sn,对于功率传感器,使用对应的 _power 键
|
||||
|
||||
Reference in New Issue
Block a user