Browse Source

Use modelFriendlyName for consistent naming (#63)

J. Nick Koston 1 year ago
parent
commit
25f5831d43
1 changed files with 1 additions and 1 deletions
  1. 1 1
      switchbot/adv_parser.py

+ 1 - 1
switchbot/adv_parser.py

@@ -95,7 +95,7 @@ def parse_advertisement_data(
             {
                 "isEncrypted": bool(_service_data[0] & 0b10000000),
                 "model": _model,
-                "model_friendly_name": type_data["modelFriendlyName"],
+                "modelFriendlyName": type_data["modelFriendlyName"],
                 "modelName": type_data["modelName"],
                 "data": type_data["func"](_service_data, _mfr_data),
             }