From f302e626c3e1279396d6b47b3057adc57ebcbc7a Mon Sep 17 00:00:00 2001 From: Jeremy Beall Date: Sun, 23 Oct 2022 12:20:15 +1100 Subject: [PATCH 1/3] Add Purifier Cool [438K] - Bumped version for testing --- libdyson/__init__.py | 2 ++ libdyson/const.py | 2 ++ libdyson/dyson_pure_cool.py | 2 +- setup.cfg | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) 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 From c94fb144b76954afb5ba3f67127f63f83429d456 Mon Sep 17 00:00:00 2001 From: Jeremy Beall Date: Sun, 23 Oct 2022 13:51:50 +1100 Subject: [PATCH 2/3] Reverted version after testing ha-dyson edits --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index e862308..2fdce11 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = libdyson -version = 0.9.0 +version = 0.8.11 author = Xiaonan Shen author_email = s@sxn.dev license = MIT License From 108ae8bea606a651c3f7ae778d45bb96dbbff01c Mon Sep 17 00:00:00 2001 From: Jeremy Beall Date: Sat, 31 Dec 2022 08:19:49 +1100 Subject: [PATCH 3/3] Upping version to so HA can pull from this fork Original developer isnt merging new code --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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