From 46213bd508c68330cee71328ba0db6dc3bab73f4 Mon Sep 17 00:00:00 2001 From: Tijs Verkoyen Date: Thu, 11 Jul 2024 22:16:03 +0200 Subject: [PATCH] Disabled detecting the Touch profiles as it fails completly in HA 2024.7 See https://github.com/joleys/niko-home-control-II/issues/168 for more information. --- README.md | 3 +++ custom_components/nhc2/config_flow.py | 16 +++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9f70732..37fefe4 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ You can use a touchscreen profile or the Hobby API account. This integration communicates directly with the controller. You only need internet when activating/renewing the Hobby API. If you use a touch screen profile, this isn't even needed. +**IMPORTANT**: There is an issue with the touch profiles, so the only supported way to configure the controller is the +Niko Hobby API. + ## Acknowledgements This custom component is a [spin-off of the hard and excellent work by @filipvh](https://github.com/filipvh/hass-nhc2). diff --git a/custom_components/nhc2/config_flow.py b/custom_components/nhc2/config_flow.py index 6fee13e..f8687ba 100644 --- a/custom_components/nhc2/config_flow.py +++ b/custom_components/nhc2/config_flow.py @@ -92,11 +92,21 @@ async def _show_manual_host_config_form(self): async def async_step_manual_host(self, user_input=None): self._errors = {} - disc = CoCoDiscoverProfiles(user_input[CONF_HOST]) - self._all_cocos = await disc.get_all_profiles() + # Disabled for now, as it goes wrong in HA 2024.7.x + # See https://github.com/joleys/niko-home-control-II/issues/168 for more information + # disc = CoCoDiscoverProfiles(user_input[CONF_HOST]) + # self._all_cocos = await disc.get_all_profiles() + self._all_cocos = [ + ( + user_input[CONF_HOST], + None, + [], + None + ) + ] + if self._all_cocos is not None and len(self._all_cocos) == 1: self._selected_coco = self._all_cocos[0] - _LOGGER.debug(str(self._all_cocos)) for coco in self._all_cocos: if coco[2] is None: return self.async_abort(reason="no_controller_found")