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>