Skip to content

Commit

Permalink
[ESPHome] Disable dashboard based update entities by default (#120907)
Browse files Browse the repository at this point in the history
Co-authored-by: Paulus Schoutsen <[email protected]>
  • Loading branch information
jesserockz and balloob authored Jul 2, 2024
1 parent e322cad commit 72d706a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/esphome/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class ESPHomeDashboardUpdateEntity(
_attr_title = "ESPHome"
_attr_name = "Firmware"
_attr_release_url = "https://esphome.io/changelog/"
_attr_entity_registry_enabled_default = False

def __init__(
self, entry_data: RuntimeEntryData, coordinator: ESPHomeDashboardCoordinator
Expand Down
5 changes: 5 additions & 0 deletions tests/components/esphome/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
from .conftest import MockESPHomeDevice


@pytest.fixture(autouse=True)
def enable_entity(entity_registry_enabled_by_default: None) -> None:
"""Enable update entity."""


@pytest.fixture
def stub_reconnect():
"""Stub reconnect."""
Expand Down

0 comments on commit 72d706a

Please sign in to comment.