Erwin Douna
59a01fcf9c
Add try-catch for invalid auth to Tado ( #106774 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-03 09:15:39 +01:00
Erwin Douna
4decc2bbfb
Refactor Tado to use OAuth in the DeviceTracker ( #102610 )
...
* Refactor to use TadoConnector in the DeviceTracker
* Proposing myself as code owner to be notified of issues
* Update homeassistant/components/tado/device_tracker.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Fixing method names
* Current progress, switching machines
* Updating DeviceTracker to working prototype
* Removing unnecessary callback
* Adding dispatcher logic
* Minor fine-tuning the intervals
* Removing unnecessary debug log
* Update homeassistant/components/tado/device_tracker.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/tado/device_tracker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fix sorting
* Retrieve devices from the Tado connector data
* Asyncio feedback & dispatch generic mobile devices
* Updating const
* Fine-tuning unloading
* Making add_tracked_entites callback
* Adding unload over dispatcher_connect
* Convert on_demand_update to callback
* Removing now unused method
* Merging method to on_demand_u
* Adding create_issue to address repair
* Updating with better translation
* Converting to callback
* Adding _attr_should_poll
* Putting back the on_demand_update
* Adding unique_id
* Converting to TrackerEntity
* Adding import step (review needed!)
* Update homeassistant/components/tado/device_tracker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tado/device_tracker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tado/device_tracker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Typing and location_name
* Changing to _attr_unique_id
* Import improvement attempt
* Property feedback
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Adding CONF_HOME_ID and task in get_scanner
* Updating descriptions
* Removing the create_task
* Putting back PLATFORM_SCHEMA
* Adding device_tracker
* Adding get for HomeID
* Get it better ;)
* Retrieve HomeID from API
* Add integration title in dialogs
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Fixing homeID and strings.json
* Delete request in strings
* Update deprecation date
* Adding test cases for import flow
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Removing none
* Fixing test cases
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Removing from context manager
* Removing code owner
* Re-adding code owner
* Fix get scanner return value
* Fix device tracker interface
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-12-27 14:17:23 +01:00
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions ( #100567 )
2023-09-19 18:58:46 +02:00
Erwin Douna
d761b5ddbf
Add tests and typing to Tado config flow ( #98281 )
...
* Upgrading tests
* Code improvements and removing unused function
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Update tests/components/tado/test_config_flow.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
* Importing Any
* Rerunning Blackformatter
* Adding fallback scenario to options flow
* Adding constants
* Adding a retry on the exceptions
* Refactoring to standard
* Update homeassistant/components/tado/config_flow.py
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
* Adding type to validate_input
* Updating test
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-08-17 19:37:34 +02:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
Joshua Roys
9134e5c844
Get discovered zeroconf IPv6 addresses ( #65462 )
2022-02-11 16:46:17 -06:00
epenet
77dfeb062f
Update ZeroconfServiceInfo in tests (n-t) ( #60219 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 10:35:44 -06:00
epenet
39149e19f7
Use ZeroconfServiceInfo in tado ( #60111 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 11:54:15 +01:00
Ville Skyttä
cc0c79ac9a
Use http.HTTPStatus in components/[tuv]* ( #58325 )
2021-10-24 11:27:17 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Ville Skyttä
153d6e891e
Use config_entries.SOURCE_* constants ( #49631 )
2021-04-25 11:27:40 +02:00
Franck Nijhof
7264c95217
Clean up superfluous integration setup - part 6 ( #49298 )
2021-04-16 09:23:27 -07:00
J. Nick Koston
47c0adb312
Remove YAML support from tado ( #45384 )
2021-01-24 01:33:30 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
1c36bf5e19
Fix block till done in create entry config flow tests ( #42290 )
2020-10-24 16:20:56 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
J. Nick Koston
29383f98b5
Add ability to ignore tado discovery ( #34650 )
...
* Add ability to ignore tado discovery
* update test
* Update tests/components/tado/test_config_flow.py
Co-Authored-By: Chris Talkington <chris@talkingtontech.com>
* Update tests/components/tado/test_config_flow.py
Co-Authored-By: Chris Talkington <chris@talkingtontech.com>
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-04-25 17:08:53 -05:00
J. Nick Koston
4b1626a748
Config flow for tado ( #33677 )
...
* Config flow for tado
* Add homekit models
* self review fixes
* reduce since the loop is gone
* Update homeassistant/components/tado/water_heater.py
Co-Authored-By: Michaël Arnauts <michael.arnauts@gmail.com>
* Change identifier
* Ensure fallback mode is on by default
* unique ids much be str
Co-authored-by: Michaël Arnauts <michael.arnauts@gmail.com>
2020-04-12 13:42:36 -05:00