diff --git a/custom_components/miner/__init__.py b/custom_components/miner/__init__.py index c08d13a..bc4198c 100644 --- a/custom_components/miner/__init__.py +++ b/custom_components/miner/__init__.py @@ -10,7 +10,7 @@ from .const import CONF_IP from .const import DOMAIN from .coordinator import MinerCoordinator -from .service import async_setup_services +from .services import async_setup_services PLATFORMS: list[Platform] = [Platform.SENSOR, Platform.SWITCH, Platform.NUMBER] diff --git a/custom_components/miner/service.py b/custom_components/miner/services.py similarity index 100% rename from custom_components/miner/service.py rename to custom_components/miner/services.py diff --git a/custom_components/miner/services.yaml b/custom_components/miner/services.yaml index ae09740..c7c945a 100644 --- a/custom_components/miner/services.yaml +++ b/custom_components/miner/services.yaml @@ -1,7 +1,9 @@ reboot: target: entity: + domain: miner restart_backend: target: entity: + domain: miner