Fix Keba request data service call (#34254)

This commit is contained in:
Philipp Danner 2020-04-16 02:44:39 +02:00 committed by GitHub
parent 0d8c75d9ce
commit 446c7349ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: