Skip to content

Remove deprecated code#651

Merged
wollew merged 4 commits intoJulius2342:masterfrom
wollew:remove_deprecated
Apr 4, 2026
Merged

Remove deprecated code#651
wollew merged 4 commits intoJulius2342:masterfrom
wollew:remove_deprecated

Conversation

@wollew
Copy link
Copy Markdown
Collaborator

@wollew wollew commented Mar 26, 2026

This PR removes code that's been deprecated before.

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pyvlx
  const.py
  opening_device.py
  src/pyvlx/api
  get_all_nodes_information.py 35-41
  get_state.py 32
Project Total  

This report was generated by python-coverage-comment-action

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes previously deprecated public API surface and cleanup related dependencies in pyvlx, aligning the codebase with the newer non-deprecated access patterns.

Changes:

  • Removed deprecated OpeningDevice.get_limitation() wrapper method and the deprecated decorator usage.
  • Removed deprecated/compatibility aliases and properties (e.g., WinkTime.BY_MANUFACTUERER, GetState.gateway_state/gateway_sub_state).
  • Dropped the runtime dependency on Deprecated and corrected a warning log message in node information retrieval.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/pyvlx/opening_device.py Removes deprecated get_limitation() API and associated decorator import.
src/pyvlx/const.py Removes deprecated backwards-compat enum alias for wink time.
src/pyvlx/api/get_state.py Removes deprecated properties exposing gateway state/substate directly.
src/pyvlx/api/get_all_nodes_information.py Fixes warning message wording from “scenes” to “nodes”.
pyproject.toml Removes Deprecated from runtime dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wollew wollew merged commit a31d7e0 into Julius2342:master Apr 4, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants