소스 검색

Use modelFriendlyName for consistent naming (#63)

J. Nick Koston 1 년 전
부모
커밋
25f5831d43
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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),
             }