Skip to content

Instantly share code, notes, and snippets.

View chatziko's full-sized avatar

Kostas Chatzikokolakis chatziko

View GitHub Profile
@chatziko
chatziko / README.md
Created February 2, 2024 13:11
AppDaemon return_result workaround

This is a workaround for AppDaemon/appdaemon#1837

  1. Add the call_service_with_response script to your HA config
  2. Inherit your app from ServiceResponseApp and use call_service as usual with return_result
class MyApp(ServiceResponseApp):
    async def initialize(self):
        list = await self.call_service(
 "todo.get_items",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.