Add option to enable offline mode to lamarzocco#159094
Merged
joostlek merged 7 commits intoDec 15, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an offline mode option to the La Marzocco integration, allowing users to operate their coffee machines without cloud connectivity by relying solely on Bluetooth communication. This feature is useful for users who prefer local-only control or have connectivity concerns.
Key changes:
- Added
CONF_OFFLINE_MODEconfiguration option with validation requiring Bluetooth to be enabled - Modified coordinators to skip cloud-based updates when offline mode is active
- Refactored setup logic to conditionally skip cloud API calls in offline mode
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
homeassistant/components/lamarzocco/const.py |
Added CONF_OFFLINE_MODE constant definition |
homeassistant/components/lamarzocco/config_flow.py |
Added offline mode option to options flow with validation that Bluetooth must be enabled |
homeassistant/components/lamarzocco/coordinator.py |
Modified base coordinator to disable update intervals for cloud coordinators when offline mode is active, added _ignore_offline_mode flag for Bluetooth coordinator |
homeassistant/components/lamarzocco/__init__.py |
Refactored setup to skip cloud API calls when offline mode is enabled, added validation that Bluetooth is available in offline mode |
homeassistant/components/lamarzocco/strings.json |
Added user-facing strings for offline mode option and error messages |
tests/components/lamarzocco/test_config_flow.py |
Added tests for offline mode validation in options flow |
tests/components/lamarzocco/test_bluetooth.py |
Added tests for offline mode setup scenarios with and without Bluetooth device |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
8 tasks
joostlek
approved these changes
Dec 15, 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
This change allows users which do not want to use the cloud to manually enter into the offline mode.
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: