From d6cf60190a139c15050efc06af2f996f900b110f Mon Sep 17 00:00:00 2001 From: Brett Rowan <121075405+b-rowan@users.noreply.github.com> Date: Fri, 21 Jun 2024 18:54:26 -0600 Subject: [PATCH] Re-register services. --- custom_components/miner/__init__.py | 2 +- custom_components/miner/services.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/miner/__init__.py b/custom_components/miner/__init__.py index 99a967e..c08d13a 100644 --- a/custom_components/miner/__init__.py +++ b/custom_components/miner/__init__.py @@ -29,7 +29,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) - # await async_setup_services(hass) + await async_setup_services(hass) return True diff --git a/custom_components/miner/services.yaml b/custom_components/miner/services.yaml index a0152f3..c7c945a 100644 --- a/custom_components/miner/services.yaml +++ b/custom_components/miner/services.yaml @@ -2,6 +2,7 @@ reboot: target: entity: domain: miner + restart_backend: target: entity: