Fix Keba request data service call (#34254)

This commit is contained in:
Philipp Danner authored and GitHub committed 2020-04-15 17:44:39 -07:00
1 parent 0d8c75d9ce
commit 446c7349ff
1 file changed
+6 -1
+6 -1
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: