Skip to content

Commit

Permalink
Disabled detecting the Touch profiles as it fails completly in HA 2024.7
Browse files Browse the repository at this point in the history
See #168 for more information.
  • Loading branch information
tijsverkoyen committed Jul 11, 2024
1 parent 5c5e2e4 commit 46213bd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
16 changes: 13 additions & 3 deletions custom_components/nhc2/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 46213bd

Please sign in to comment.