Skip to content

POC: add unified devices method#151

Merged
wmalgadey merged 15 commits intoerwindouna:mainfrom
karlbeecken:unified-tadox
Mar 22, 2026
Merged

POC: add unified devices method#151
wmalgadey merged 15 commits intoerwindouna:mainfrom
karlbeecken:unified-tadox

Conversation

@karlbeecken
Copy link
Copy Markdown
Contributor

Proposed Changes

This is a proof of concept on how a "unified method" to access certain features indepent from the underlying API version / tado line could look like.

Discussion on the approach is very welcome, right now I did focus on not breaking the existing v3 interface.

It would, of course, be much, much cleaner to remove all current v3 methods from the main Tado class, only have the unified methods at this level and provide separate classes for the two different APIs.

Or, maybe even cleaner, have an abstract base class with separate classes implementing the two APIs, like it was done for PyTado v1.0: https://github.com/wmalgadey/PyTado/tree/master/PyTado/interface/api.

Either of this would of course break compatibility to previous releases, so would probably mean a 1.0 release for this library, too 😇

Related Issues

Sort-of depends on #143, although you can still use it if you set the _tado_line manually to either TadoLine.LINE_X or TadoLine.PRE_LINE_X.

Related to #136.

@wmalgadey wmalgadey added the enhancement Enhancement of the code, not introducing new features label Feb 25, 2026
Comment thread src/tadoasync/tadoasync.py
@karlbeecken

This comment was marked as resolved.

@karlbeecken karlbeecken requested a review from wmalgadey March 4, 2026 17:10
@wmalgadey
Copy link
Copy Markdown
Collaborator

@wmalgadey I moved it into a unifier class, is that what you had in mind?

I like this approach. @erwindouna what do you think? Is that a way to go with the x devices?

@wmalgadey
Copy link
Copy Markdown
Collaborator

@karlbeecken would you mind, fixing the merge conflicts?

@wmalgadey wmalgadey merged commit 77138b3 into erwindouna:main Mar 22, 2026
11 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Enhancement of the code, not introducing new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants