From e9d15b2bc926a2edba0e39befdb27648de8ae1c3 Mon Sep 17 00:00:00 2001 From: Jack Simbach Date: Thu, 19 Aug 2021 20:58:15 -0400 Subject: [PATCH] - fixed advantium operation list (hopefully resolves #34) --- custom_components/ge_home/entities/advantium/ge_advantium.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/ge_home/entities/advantium/ge_advantium.py b/custom_components/ge_home/entities/advantium/ge_advantium.py index eafc347..0be5f41 100644 --- a/custom_components/ge_home/entities/advantium/ge_advantium.py +++ b/custom_components/ge_home/entities/advantium/ge_advantium.py @@ -82,7 +82,10 @@ def operation_list(self) -> List[str]: if not self._remote_config.warm_enable: invalid.append(CookMode.WARM) - return [v for _, v in ADVANTIUM_OPERATION_MODE_COOK_SETTING_MAPPING.items() if v.cook_mode not in invalid] + return [( + k.stringify() + for k, v in ADVANTIUM_OPERATION_MODE_COOK_SETTING_MAPPING.items() + if v.cook_mode not in invalid)] @property def current_cook_setting(self) -> ErdAdvantiumCookSetting: