mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix Keba request data service call (#34254)
This commit is contained in:
parent
0d8c75d9ce
commit
446c7349ff
@ -42,7 +42,7 @@ CONFIG_SCHEMA = vol.Schema(
|
||||
)
|
||||
|
||||
_SERVICE_MAP = {
|
||||
"request_data": "request_data",
|
||||
"request_data": "async_request_data",
|
||||
"set_energy": "async_set_energy",
|
||||
"set_current": "async_set_current",
|
||||
"authorize": "async_start",
|
||||
@ -180,6 +180,11 @@ class KebaHandler(KebaKeContact):
|
||||
# initial data is already loaded, thus update the component
|
||||
listener()
|
||||
|
||||
async def async_request_data(self, param):
|
||||
"""Request new data in async way."""
|
||||
await self.request_data()
|
||||
_LOGGER.debug("New data from KEBA wallbox requested")
|
||||
|
||||
async def async_set_energy(self, param):
|
||||
"""Set energy target in async way."""
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user