Skip to content

POC: add unified devices method#151

Open
karlbeecken wants to merge 11 commits intoerwindouna:mainfrom
karlbeecken:unified-tadox
Open

POC: add unified devices method#151
karlbeecken wants to merge 11 commits intoerwindouna:mainfrom
karlbeecken:unified-tadox

Conversation

@karlbeecken
Copy link
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
@karlbeecken

This comment was marked as resolved.

@karlbeecken karlbeecken requested a review from wmalgadey March 4, 2026 17:10
@wmalgadey
Copy link
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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