diff --git a/libdyson/__init__.py b/libdyson/__init__.py index 7b05791..1eb1ecc 100644 --- a/libdyson/__init__.py +++ b/libdyson/__init__.py @@ -6,6 +6,7 @@ DEVICE_TYPE_360_EYE, DEVICE_TYPE_360_HEURIST, DEVICE_TYPE_PURE_COOL, + DEVICE_TYPE_PURIFIER_COOL, DEVICE_TYPE_PURE_COOL_FORMALDEHYDE, DEVICE_TYPE_PURE_COOL_DESK, DEVICE_TYPE_PURE_COOL_LINK, @@ -51,6 +52,7 @@ def get_device(serial: str, credential: str, device_type: str) -> Optional[Dyson return DysonPureCoolLink(serial, credential, device_type) if device_type in [ DEVICE_TYPE_PURE_COOL, + DEVICE_TYPE_PURIFIER_COOL, DEVICE_TYPE_PURE_COOL_DESK, ]: return DysonPureCool(serial, credential, device_type) diff --git a/libdyson/const.py b/libdyson/const.py index 254e1cb..54e407b 100644 --- a/libdyson/const.py +++ b/libdyson/const.py @@ -6,6 +6,7 @@ DEVICE_TYPE_PURE_COOL_LINK = "475" DEVICE_TYPE_PURE_COOL_LINK_DESK = "469" DEVICE_TYPE_PURE_COOL = "438" +DEVICE_TYPE_PURIFIER_COOL = "438K" DEVICE_TYPE_PURE_COOL_FORMALDEHYDE = "438E" DEVICE_TYPE_PURE_COOL_DESK = "520" DEVICE_TYPE_PURE_HUMIDIFY_COOL = "358" @@ -18,6 +19,7 @@ DEVICE_TYPE_360_EYE: "360 Eye robot vacuum", DEVICE_TYPE_360_HEURIST: "360 Heurist robot vacuum", DEVICE_TYPE_PURE_COOL: "Pure Cool", + DEVICE_TYPE_PURIFIER_COOL: "Purifier Cool", DEVICE_TYPE_PURE_COOL_FORMALDEHYDE: "Pure Cool Formaldehyde", DEVICE_TYPE_PURE_COOL_DESK: "Pure Cool Desk", DEVICE_TYPE_PURE_COOL_LINK: "Pure Cool Link", diff --git a/libdyson/dyson_pure_cool.py b/libdyson/dyson_pure_cool.py index 08e1571..9049b18 100644 --- a/libdyson/dyson_pure_cool.py +++ b/libdyson/dyson_pure_cool.py @@ -191,4 +191,4 @@ def formaldehyde(self) -> Optional[int]: # # This is part of environmental data as per: # https://github.com/seanrees/prometheus-dyson/issues/13#issue-923525150 - return self._get_environmental_field_value("hcho") + return self._get_environmental_field_value("hcho") \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 2fdce11..e862308 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = libdyson -version = 0.8.11 +version = 0.9.0 author = Xiaonan Shen author_email = s@sxn.dev license = MIT License