├── .devcontainer.json ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug.yml │ ├── config.yml │ └── feature_request.yml ├── release-drafter.yml └── workflows │ ├── lint.yml │ ├── release-drafter.yml │ ├── release.yml │ ├── tests.yml │ └── validate.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .ruff.toml ├── .vscode ├── launch.json └── tasks.json ├── .yamllint ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── config └── configuration.yaml ├── custom_components └── measureit │ ├── __init__.py │ ├── config_flow.py │ ├── const.py │ ├── coordinator.py │ ├── icons.json │ ├── manifest.json │ ├── meter.py │ ├── reading.py │ ├── sensor.py │ ├── services.yaml │ ├── time_window.py │ ├── translations │ ├── en.json │ └── sk.json │ └── util.py ├── hacs.json ├── pyproject.toml ├── renovate.json ├── requirements.txt ├── scripts ├── develop ├── lint └── setup └── tests ├── __init__.py ├── conftest.py ├── integration ├── __init__.py ├── test_condition_template.py ├── test_counter_meter_flow.py ├── test_forever_pattern.py ├── test_source_meter_flow.py └── test_time_meter_flow.py └── unit ├── __init__.py ├── test_config_flow.py ├── test_coordinator.py ├── test_counter_meter.py ├── test_options_flow.py ├── test_sensor.py ├── test_source_meter.py ├── test_time_meter.py └── test_time_window.py /.devcontainer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.devcontainer.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/ISSUE_TEMPLATE/bug.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: true 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/ISSUE_TEMPLATE/feature_request.yml -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/workflows/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.github/workflows/validate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.github/workflows/validate.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.ruff.toml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/.yamllint -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/README.md -------------------------------------------------------------------------------- /config/configuration.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/config/configuration.yaml -------------------------------------------------------------------------------- /custom_components/measureit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/__init__.py -------------------------------------------------------------------------------- /custom_components/measureit/config_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/config_flow.py -------------------------------------------------------------------------------- /custom_components/measureit/const.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/const.py -------------------------------------------------------------------------------- /custom_components/measureit/coordinator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/coordinator.py -------------------------------------------------------------------------------- /custom_components/measureit/icons.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/icons.json -------------------------------------------------------------------------------- /custom_components/measureit/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/manifest.json -------------------------------------------------------------------------------- /custom_components/measureit/meter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/meter.py -------------------------------------------------------------------------------- /custom_components/measureit/reading.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/reading.py -------------------------------------------------------------------------------- /custom_components/measureit/sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/sensor.py -------------------------------------------------------------------------------- /custom_components/measureit/services.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/services.yaml -------------------------------------------------------------------------------- /custom_components/measureit/time_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/time_window.py -------------------------------------------------------------------------------- /custom_components/measureit/translations/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/translations/en.json -------------------------------------------------------------------------------- /custom_components/measureit/translations/sk.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/translations/sk.json -------------------------------------------------------------------------------- /custom_components/measureit/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/custom_components/measureit/util.py -------------------------------------------------------------------------------- /hacs.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/hacs.json -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.pytest.ini_options] 2 | asyncio_mode = "auto" 3 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/renovate.json -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/develop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/scripts/develop -------------------------------------------------------------------------------- /scripts/lint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/scripts/lint -------------------------------------------------------------------------------- /scripts/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/scripts/setup -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/integration/__init__.py: -------------------------------------------------------------------------------- 1 | """Integration tests for MeasureIt.""" 2 | -------------------------------------------------------------------------------- /tests/integration/test_condition_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/integration/test_condition_template.py -------------------------------------------------------------------------------- /tests/integration/test_counter_meter_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/integration/test_counter_meter_flow.py -------------------------------------------------------------------------------- /tests/integration/test_forever_pattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/integration/test_forever_pattern.py -------------------------------------------------------------------------------- /tests/integration/test_source_meter_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/integration/test_source_meter_flow.py -------------------------------------------------------------------------------- /tests/integration/test_time_meter_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/integration/test_time_meter_flow.py -------------------------------------------------------------------------------- /tests/unit/__init__.py: -------------------------------------------------------------------------------- 1 | """Unit tests for MeasureIt.""" 2 | -------------------------------------------------------------------------------- /tests/unit/test_config_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_config_flow.py -------------------------------------------------------------------------------- /tests/unit/test_coordinator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_coordinator.py -------------------------------------------------------------------------------- /tests/unit/test_counter_meter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_counter_meter.py -------------------------------------------------------------------------------- /tests/unit/test_options_flow.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_options_flow.py -------------------------------------------------------------------------------- /tests/unit/test_sensor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_sensor.py -------------------------------------------------------------------------------- /tests/unit/test_source_meter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_source_meter.py -------------------------------------------------------------------------------- /tests/unit/test_time_meter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_time_meter.py -------------------------------------------------------------------------------- /tests/unit/test_time_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danieldotnl/ha-measureit/HEAD/tests/unit/test_time_window.py --------------------------------------------------------------------------------