Skip to content

Commit cc46f4a

Browse files
Enhance Bluetooth scanner initialization for Etekcity fitness scale
- Added logic to create a passive native scanner if no proxy scanner is available - Adjusted manifest.json for proper key ordering to comply with Home Assistant standards
1 parent 4a8c718 commit cc46f4a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

custom_components/etekcity_fitness_scale_ble/coordinator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ async def _get_bluetooth_scanner(self) -> Optional[BaseBleakScanner]:
718718
"Unexpected error creating Bluetooth scanner: %s", ex
719719
)
720720
scanner = None
721-
721+
722722
# NEW: If no proxy scanner was created but a native adapter is available, create a passive native scanner
723723
if scanner is None and native:
724724
try:

custom_components/etekcity_fitness_scale_ble/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"bluetooth": [
99
{
1010
"connectable": true,
11-
"manufacturer_id": 1744,
12-
"local_name": "Etekcity *Fitness *Scale*"
11+
"local_name": "Etekcity *Fitness *Scale*",
12+
"manufacturer_id": 1744
1313
},
1414
{
1515
"connectable": true,

0 commit comments

Comments
 (0)