Add brew by weight controls to lamarzocco#158169
Merged
joostlek merged 8 commits intohome-assistant:devfrom Dec 13, 2025
Merged
Add brew by weight controls to lamarzocco#158169joostlek merged 8 commits intohome-assistant:devfrom
joostlek merged 8 commits intohome-assistant:devfrom
Conversation
8 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds brew by weight (BBW) controls to the La Marzocco integration, enabling users to configure dose modes and weight targets through Home Assistant.
Key Changes:
- Added select entity for BBW dose mode selection (continuous, dose1, dose2)
- Added two number entities for configuring BBW dose weight values (Dose 1 and Dose 2)
- Enhanced test coverage with comprehensive tests for the new entities
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
homeassistant/components/lamarzocco/select.py |
Added DOSE_MODE_HA_TO_LM mapping constants and new BBW dose mode select entity description with availability check for scale connection |
homeassistant/components/lamarzocco/number.py |
Added two number entity descriptions for BBW dose 1 and dose 2 with weight device class, configurable 5-100g range, and scale connection availability check |
homeassistant/components/lamarzocco/strings.json |
Added translations for BBW entities including entity names and select state options |
homeassistant/components/lamarzocco/icons.json |
Added icons for BBW entities with state-based icons for dose mode select (all-inclusive-box for continuous, numeric boxes for dose1/dose2) |
tests/components/lamarzocco/test_select.py |
Added comprehensive test for BBW dose mode select entity including state verification and service call testing |
tests/components/lamarzocco/test_number.py |
Added parametrized test for both BBW dose number entities with snapshot assertions and service call verification |
tests/components/lamarzocco/fixtures/config_mini.json |
Updated fixture to set scaleConnected to true, enabling BBW entities in tests |
tests/components/lamarzocco/snapshots/test_select.ambr |
Added snapshots for BBW dose mode select entity state and registry entry |
tests/components/lamarzocco/snapshots/test_number.ambr |
Added snapshots for both BBW dose number entities covering state and registry entries |
joostlek
approved these changes
Dec 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking change
Proposed change
Adding select & number entities to control bbw
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: