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

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Jesse Hills 2024-07-02 23:51:14 +12:00 committed by Franck Nijhof
parent 1e6dc74812
commit 3b6acd5380
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 6 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class ESPHomeDashboardUpdateEntity(
_attr_title = "ESPHome" _attr_title = "ESPHome"
_attr_name = "Firmware" _attr_name = "Firmware"
_attr_release_url = "https://esphome.io/changelog/" _attr_release_url = "https://esphome.io/changelog/"
_attr_entity_registry_enabled_default = False
def __init__( def __init__(
self, entry_data: RuntimeEntryData, coordinator: ESPHomeDashboardCoordinator self, entry_data: RuntimeEntryData, coordinator: ESPHomeDashboardCoordinator

View File

@ -33,6 +33,11 @@ from homeassistant.exceptions import HomeAssistantError
from .conftest import MockESPHomeDevice from .conftest import MockESPHomeDevice
@pytest.fixture(autouse=True)
def enable_entity(entity_registry_enabled_by_default: None) -> None:
"""Enable update entity."""
@pytest.fixture @pytest.fixture
def stub_reconnect(): def stub_reconnect():
"""Stub reconnect.""" """Stub reconnect."""