Commit graph

20 commits

Author SHA1 Message Date
Joost Lekkerkerker
9278db7344
Rename variable in Overkiz config flow (#104377) 2023-11-22 18:31:18 +01:00
Joost Lekkerkerker
b5f8b35549
Remove Overkiz config flow constructor (#104375) 2023-11-22 17:54:10 +01:00
Mick Vleeshouwer
75f237b587
Add local API support to Overkiz integration (Somfy TaHoma Developer Mode) (#71644)
* Add initial config flow implementation

* Add initial config flow implementation

* Add todos

* Bugfixes

* Add first zeroconf code

* Fixes for new firmware

* Bugfixes for local integration

* Delete local token

* Fix diagnostics

* Update translations and improve code

* Update translations and improve code

* Add local integration updates

* Add local integration updates

* Small tweaks

* Add comments

* Bugfix

* Small code improvements

* Small code improvements

* Small code improvements

* Small code improvements

* Small code improvements

* Small code improvements

* Bugfixes

* Small code improvements

* Small code improvements

* Change Config Flow (breaking change)

* Remove token when integration is unloaded

* Remove print

* Simplify

* Bugfixes

* Improve configflow

* Clean up unnecessary things

* Catch nosuchtoken exception

* Add migration for Config Flow

* Add version 2 migration

* Revert change in Config Flow

* Fix api type

* Update strings

* Improve migrate entry

* Implement changes

* add more comments

* Extend diagnostics

* Ruff fixes

* Clean up code

* Bugfixes

* Set gateway id

* Start writing tests

* Add first local test

* Code coverage to 64%

* Fixes

* Remove local token on remove entry

* Add debug logging + change manifest

* Add developer mode check

* Fix not_such_token issue

* Small text changes

* Bugfix

* Fix tests

* Address feedback

* DRY

* Test coverage to 77%

* Coverage to 78%

* Remove token removal by UUID

* Add better retry methods

* Clean up

* Remove old data

* 87% coverage

* 90% code coverage

* 100% code coverage

* Use patch.multiple

* Improve tests

* Apply pre-commit after rebase

* Fix breaking changes in ZeroconfServiceInfo

* Add verify_ssl

* Fix test import

* Fix tests

* Catch SSL verify failed

* Revert hub to server rename

* Move Config Flow version back to 1

* Add diagnostics tests

* Fix tests

* Fix strings

* Implement feedback

* Add debug logging for local connection errors

* Simplify Config Flow and fix tests

* Simplify Config Flow

* Fix verify_ssl

* Fix rebase mistake

* Address feedback

* Apply suggestions from code review

* Update tests/components/overkiz/test_config_flow.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-22 16:53:17 +01:00
Mick Vleeshouwer
132ff2c410
Update Config Flow to show message about unsupported Overkiz hardware (#79503)
* Update Config Flow to show cozytouch unsupported hardware error

* Apply feedback

* Remove vague unknown user exception

* Fix test

* Code coverage back to 100%
2022-10-08 16:37:03 -06:00
Mick Vleeshouwer
c98ee412c0
Catch unknown user exception in Overkiz integration (#76693) 2022-08-31 21:16:00 +02:00
epenet
ef5fccad9e
Use standard argument name in async_step_reauth (#74139) 2022-06-28 23:23:32 +02:00
epenet
756988fe20
Use Mapping for async_step_reauth (f-o) (#72764) 2022-06-02 14:17:09 +02:00
Mick Vleeshouwer
6a0a77f986
Don't close aiohttp session in Overkiz config flow (#68913) 2022-03-30 11:40:14 -07:00
Mick Vleeshouwer
365ea59b64
Improve Config Flow and handle TooManyAttemptsBannedException in Overkiz (#68868) 2022-03-29 16:19:57 -10:00
Mick Vleeshouwer
c763d23cbb
Fix reauth message in Overkiz integration (#68787) 2022-03-28 08:23:25 -07:00
Mick Vleeshouwer
2456d8a401
Remember user and hub after input in ConfigFlow (#66608) 2022-02-21 20:56:20 +02:00
Mick Vleeshouwer
98ae7e106c
Always create a new session in ConfigFlow in Overkiz integration (#66602) 2022-02-15 14:46:52 -06:00
Vincent Le Bourlot
d82899ed2f
Add title placeholders to overkiz discovery (#65506)
* add gateway_id to the config flow context name.

* obfuscate gateway_id.

* replace const with homeassistant.const.

* Remove obfuscation of gateway_id.

* fix style.

* Add translatable title according to comments

* Update homeassistant/components/overkiz/strings.json

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-02-07 17:53:05 +02:00
Mick Vleeshouwer
5bd96a35f9
Add reauth flow to Overkiz integration (#64622) 2022-01-25 13:00:58 -10:00
Etienne G
dfb7ab5c30
Add zeroconf to overkiz integration (#64907)
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-01-25 07:50:40 -10:00
Mick Vleeshouwer
24e24a5157
Move logger to constants (#64431) 2022-01-19 17:19:49 +02:00
Mick Vleeshouwer
3fcdaa8a5d
Don't close HA aiohttp session in Overkiz Config Flow (#64052) 2022-01-13 21:35:07 +01:00
Mick Vleeshouwer
8599ddf51e
Address feedback to Overkiz integration (round 2) (#63036)
* Address feedback in multiple files

* Add missing return statement

* Improve sensor descriptions

* Improve typing

* Move to new device registry

* Disable RSSI sensor by default

* Improve typing
2021-12-30 15:22:35 +01:00
Mick Vleeshouwer
b9ce82f79c
Add unique id to DHCP step in Config Flow for Overkiz (#62847) 2021-12-27 11:28:18 -10:00
Mick Vleeshouwer
3605c4f32f
Add Overkiz integration (with base + sensor entity) (#62640) 2021-12-23 08:34:35 -10:00