"""
ECU Tests framework package.

Provides:
- config: YAML configuration loader and types
- lin: LIN interface abstraction and adapters (mock, MUM, and the deprecated BabyLIN)
- power: Owon PSU control and cross-platform serial-port resolution
- flashing: UDS-over-LIN ECU programming scaffold (HexFlasher)

Package version is exposed as __version__.
"""
__all__ = [
    "config",
    "lin",
    "power",
    "flashing",
]

from importlib.metadata import PackageNotFoundError, version as _pkg_version

try:
    __version__ = _pkg_version("ecu-framework")
except PackageNotFoundError:
    # Running from a source checkout without `pip install -e .`
    __version__ = "0.0.0+local"

del PackageNotFoundError, _pkg_version
