Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
fix: rename service
Browse files Browse the repository at this point in the history
  • Loading branch information
Александр Тумайкин authored and Александр Тумайкин committed Jun 2, 2021
1 parent 6ad2995 commit d1b7c76
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions custom_components/electrolux_remote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
HOST_RUSKLIMAT,
STARTUP_MESSAGE,
CONF_APPCODE,
SERVICE_UPDATE_STATE,
MANUFACTURER
SERVICE_FETCH_STATE,
MANUFACTURER,
)
from .api import ApiInterface, Api
from .update_coordinator import Coordinator
Expand Down Expand Up @@ -111,7 +111,7 @@ async def async_update(call=None):
"""Update all data."""
await coordinator.async_refresh()

hass.services.async_register(DOMAIN, SERVICE_UPDATE_STATE, async_update)
hass.services.async_register(DOMAIN, SERVICE_FETCH_STATE, async_update)

return True

Expand Down
4 changes: 2 additions & 2 deletions custom_components/electrolux_remote/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
NAME = "{{ Electrolux remote }}"
DOMAIN = "electrolux_remote"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "1.0.0"
VERSION = "1.0.1"
ISSUE_URL = "https://github.com/Ailme/home_assistant_electrolux_remote/issues"

CONF_APPCODE = "appcode"
Expand Down Expand Up @@ -31,7 +31,7 @@
DEVICE_FLOOR = "floor"
DEVICE_REGENCY = "regency"

SERVICE_UPDATE_STATE = "update_state"
SERVICE_FETCH_STATE = "fetch_state"

MANUFACTURER = {
APPCODE_ELECTROLUX: 'Electrolux',
Expand Down
2 changes: 1 addition & 1 deletion custom_components/electrolux_remote/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"@Ailme"
],
"iot_class": "cloud_polling",
"version": "1.0.0"
"version": "1.0.1"
}
3 changes: 1 addition & 2 deletions custom_components/electrolux_remote/services.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
update_state:
fetch_state:
description: >
Fetch the last state of the devices from server.
5 changes: 5 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
This is **only** intended for development!

{%- elif (version_installed.replace("v", "").split(".")[0] | int) < 1 %}
## Version 1.0.1

### Fix
- служба electrolux_remote.update_state переименована в electrolux_remote.fetch_state

## Version 1.0.0

### Features
Expand Down

0 comments on commit d1b7c76

Please sign in to comment.