Skip to content

feat: add configuration dataclass, allow squelching duplicate name warnings#149

Merged
cryptk merged 1 commit into
mainfrom
feat_class_configuration
May 29, 2026
Merged

feat: add configuration dataclass, allow squelching duplicate name warnings#149
cryptk merged 1 commit into
mainfrom
feat_class_configuration

Conversation

@cryptk
Copy link
Copy Markdown
Owner

@cryptk cryptk commented May 29, 2026

BREAKING CHANGE: The OmniLogic class now accepts a single configuration parameter which is an instance of OmniLogicConfiguration. The host to connect to must now be passed as a parameter from OmniLogicConfiguration. This allows more advanced configuration of the library to support future functionality.

@moveslikeyoda and @tonyfruzza I know you two are using the library directly, so heads up... Luckily, the change will be easy. Rather than doing something like:

omni = OmniLogic("192.168.1.100")

Just do:

config = OmniLogicConfig(host="192.168.1.100")
omni = OmniLogic(config)

I know it adds an extra line, but this gives me a much more sane way to manage the (soon to be) expanding configuration of the library.

…rnings

BREAKING CHANGE: The OmniLogic class now accepts a single configuration parameter which is
an instance of OmniLogicConfiguration. The host to connect to must now be passed as a parameter
from OmniLogicConfiguration. This allows more advanced configuration of the library to
support future functionality.
@cryptk cryptk force-pushed the feat_class_configuration branch from 2d45357 to 16eb54b Compare May 29, 2026 15:45
@sonarqubecloud
Copy link
Copy Markdown

@cryptk cryptk merged commit af98438 into main May 29, 2026
14 checks passed
@cryptk cryptk deleted the feat_class_configuration branch May 29, 2026 15:48
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.

1 participant