Skip to content

Commit

Permalink
Merge pull request #217 from danieldotnl/dev
Browse files Browse the repository at this point in the history
Fix registering service schema with wrong name
  • Loading branch information
danieldotnl authored Jul 7, 2023
2 parents f7b3483 + 683d63f commit 871534f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/multiscrape/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def _async_trigger_service(service: ServiceCall):
CONF_DESCRIPTION: f"Triggers an update for the multiscrape {target_name} integration, independent of the update interval.",
CONF_FIELDS: {},
}
async_set_service_schema(hass, DOMAIN, target_name, service_desc)
async_set_service_schema(hass, DOMAIN, f"trigger_{target_name}", service_desc)


async def async_get_config_and_coordinator(hass, platform_domain, discovery_info):
Expand Down
2 changes: 0 additions & 2 deletions custom_components/multiscrape/coordinator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import logging
from datetime import timedelta

from homeassistant.core import CALLBACK_TYPE
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from homeassistant.helpers.update_coordinator import event
Expand Down Expand Up @@ -38,7 +37,6 @@ def __init__(
self._data_renderer = data_renderer
self.update_error = False
self._resource = None
self._unsub_refresh: CALLBACK_TYPE | None = None
self._retry: int = 0

if self._update_interval == timedelta(seconds=0):
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Multiscrape",
"hacs": "1.6.0",
"homeassistant": "2021.9.0",
"homeassistant": "2023.7.1",
"render_readme": true
}

0 comments on commit 871534f

Please sign in to comment.