mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Fix a bunch of typos (#2058)
Co-authored-by: Stefan Agner <stefan@agner.ch> Co-authored-by: Otto Winter <otto@otto-winter.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -344,9 +344,9 @@ bool report_xiaomi_results(const optional<XiaomiParseResult> &result, const std:
|
||||
bool XiaomiListener::parse_device(const esp32_ble_tracker::ESPBTDevice &device) {
|
||||
// Previously the message was parsed twice per packet, once by XiaomiListener::parse_device()
|
||||
// and then again by the respective device class's parse_device() function. Parsing the header
|
||||
// here and then for each device seems to be unneccessary and complicates the duplicate packet filtering.
|
||||
// here and then for each device seems to be unnecessary and complicates the duplicate packet filtering.
|
||||
// Hence I disabled the call to parse_xiaomi_header() here and the message parsing is done entirely
|
||||
// in the respecive device instance. The XiaomiListener class is defined in __init__.py and I was not
|
||||
// in the respective device instance. The XiaomiListener class is defined in __init__.py and I was not
|
||||
// able to remove it entirely.
|
||||
|
||||
return false; // with true it's not showing device scans
|
||||
|
||||
Reference in New Issue
Block a user