Skip to content

Commit

Permalink
uuids: remove invalid UTF-8
Browse files Browse the repository at this point in the history
This removes some invalid UTF-8 characters. This was noticed when
Bleak examples were run with `python -m trace --trace`. I caused the
trace to crash with a UnicodeError. The Chinese name for Huawei has
been removed from the Bluetooth assigned numbers doc so we removed
all the Chinese names just to keep it simple.
  • Loading branch information
dlech committed Nov 23, 2022
1 parent 74ea1c4 commit b0074d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Changed
* ``BLEDevice`` now uses ``__slots__`` to reduce memory usage.


Fixed
-----
- Fixed invalid UTF-8 in ``uuids.uuid16_dict``.

`0.19.5`_ (2022-11-19)
======================

Expand Down
4 changes: 2 additions & 2 deletions bleak/uuids.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@
0xFE83: "Blue Bite",
0xFE84: "RF Digital Corp",
0xFE85: "RF Digital Corp",
0xFE86: "HUAWEI Technologies Co.: Ltd. ( 华为技术有限公司 )",
0xFE87: "Qingdao Yeelink Information Technology Co.: Ltd. ( 青岛亿联客信息技术有限公司 )",
0xFE86: "HUAWEI Technologies Co.: Ltd.",
0xFE87: "Qingdao Yeelink Information Technology Co.: Ltd.",
0xFE88: "SALTO SYSTEMS S.L.",
0xFE89: "B&O Play A/S",
0xFE8A: "Apple: Inc.",
Expand Down

0 comments on commit b0074d3

Please sign in to comment.