diff --git a/libdyson/__init__.py b/libdyson/__init__.py index 7b05791..30550df 100644 --- a/libdyson/__init__.py +++ b/libdyson/__init__.py @@ -12,6 +12,7 @@ DEVICE_TYPE_PURE_COOL_LINK_DESK, DEVICE_TYPE_PURE_HOT_COOL, DEVICE_TYPE_PURE_HOT_COOL_NEW, + DEVICE_TYPE_PURE_HOT_COOL_527K, DEVICE_TYPE_PURE_HOT_COOL_LINK, DEVICE_TYPE_PURE_HUMIDIFY_COOL, DEVICE_TYPE_PURIFIER_HUMIDIFY_COOL_FORMALDEHYDE, @@ -61,6 +62,7 @@ def get_device(serial: str, credential: str, device_type: str) -> Optional[Dyson if device_type in [ DEVICE_TYPE_PURE_HOT_COOL, DEVICE_TYPE_PURE_HOT_COOL_NEW, + DEVICE_TYPE_PURE_HOT_COOL_527K, ]: return DysonPureHotCool(serial, credential, device_type) if device_type == DEVICE_TYPE_PURE_HUMIDIFY_COOL: diff --git a/libdyson/const.py b/libdyson/const.py index 254e1cb..b1504c5 100644 --- a/libdyson/const.py +++ b/libdyson/const.py @@ -13,6 +13,7 @@ DEVICE_TYPE_PURE_HOT_COOL_LINK = "455" DEVICE_TYPE_PURE_HOT_COOL = "527" DEVICE_TYPE_PURE_HOT_COOL_NEW = "527E" +DEVICE_TYPE_PURE_HOT_COOL_527K = "527K" DEVICE_TYPE_NAMES = { DEVICE_TYPE_360_EYE: "360 Eye robot vacuum", @@ -24,6 +25,7 @@ DEVICE_TYPE_PURE_COOL_LINK_DESK: "Pure Cool Link Desk", DEVICE_TYPE_PURE_HOT_COOL: "Pure Hot+Cool", DEVICE_TYPE_PURE_HOT_COOL_NEW: "Pure Hot+Cool (New)", + DEVICE_TYPE_PURE_HOT_COOL_527K: "Pure Hot+Cool (527K)", DEVICE_TYPE_PURE_HOT_COOL_LINK: "Pure Hot+Cool Link", DEVICE_TYPE_PURE_HUMIDIFY_COOL: "Pure Humidify+Cool", DEVICE_TYPE_PURIFIER_HUMIDIFY_COOL_FORMALDEHYDE: "Purifier Humidify+Cool Formaldehyde", diff --git a/tests/test_init.py b/tests/test_init.py index e44111f..bdc97dd 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -13,6 +13,7 @@ DEVICE_TYPE_PURE_COOL_LINK_DESK, DEVICE_TYPE_PURE_HOT_COOL, DEVICE_TYPE_PURE_HOT_COOL_NEW, + DEVICE_TYPE_PURE_HOT_COOL_527K, DEVICE_TYPE_PURE_HOT_COOL_LINK, DEVICE_TYPE_PURE_HUMIDIFY_COOL, DEVICE_TYPE_PURIFIER_HUMIDIFY_COOL_FORMALDEHYDE, @@ -45,6 +46,7 @@ (DEVICE_TYPE_PURE_HOT_COOL_LINK, DysonPureHotCoolLink), (DEVICE_TYPE_PURE_HOT_COOL, DysonPureHotCool), (DEVICE_TYPE_PURE_HOT_COOL_NEW, DysonPureHotCool), + (DEVICE_TYPE_PURE_HOT_COOL_527K, DysonPureHotCool), (DEVICE_TYPE_PURE_HUMIDIFY_COOL, DysonPureHumidifyCool), (DEVICE_TYPE_PURIFIER_HUMIDIFY_COOL_FORMALDEHYDE, DysonPurifierHumidifyCoolFormaldehyde), ],