Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Erik Montnemery
b0ed8c4961
Migrate integrations s-t to generic flowhandler ( #111865 )
2024-02-29 22:16:14 +01:00
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
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
42ed0fd47b
Add async_get_options_flow type hints (n-z) ( #73431 )
2022-06-13 13:30:41 +02:00
north3221
ad946cf9d2
Fix tado default overlay for when set pre new overlay feature ( #69584 )
2022-04-07 15:23:07 -07:00
north3221
e76170fbfd
Add overlay options to Tado ( #65886 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-29 22:59:03 -07:00
epenet
071385e8d2
Use dataclass properties in tado discovery ( #60641 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 16:44:11 +01:00
bashworth
df5d678858
Tado ignore fix ( #60011 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-23 22:00:42 +01: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
Michael
9eecd90afc
Add constructor return type in integrations T-Z ( #50899 )
2021-05-20 17:00:19 +02:00
J. Nick Koston
34c84a6bbb
Reduce boilerplate to abort for matching config entries ( #50186 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-11 22:00:12 +02:00
Franck Nijhof
64c7d84108
Clean up connection classes in integrations T-Z ( #49894 )
2021-04-30 21:04:05 -10:00
Ruslan Sayfutdinov
7a9385d857
Explicitly define all methods in ConfigFlow ( #49341 )
2021-04-17 12:42:31 +02:00
Marc Mueller
2956eb0902
Update pylint to 2.7.3 ( #48488 )
...
* Update pylint to 2.7.3
* Add class-const-naming-style
* Remove unused-import message
* Additional cleanup
2021-03-29 18:02:56 -10:00
J. Nick Koston
47c0adb312
Remove YAML support from tado ( #45384 )
2021-01-24 01:33:30 +01:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02: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