[ESPHome] Disable dashboard based update entities by default (#120907)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
pull/121021/head
Jesse Hills 2024-07-02 23:51:14 +12:00 committed by GitHub
parent e322cada48
commit 72d706ab52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -34,6 +34,11 @@ from homeassistant.exceptions import HomeAssistantError
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."""