Skip to content

Commit bccc577

Browse files
committed
more async reverts
1 parent 90af231 commit bccc577

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

appdaemon/adapi.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,8 @@ def split_device_list(devices: str) -> list[str]:
909909
"""
910910
return devices.split(",")
911911

912-
def get_plugin_config(self, namespace: str | None = None) -> Any:
912+
@utils.sync_decorator
913+
async def get_plugin_config(self, namespace: str | None = None) -> Any:
913914
"""Gets any useful metadata that the plugin may have available.
914915
915916
For instance, for the HASS plugin, this will return Home Assistant configuration
@@ -931,7 +932,8 @@ def get_plugin_config(self, namespace: str | None = None) -> Any:
931932
namespace = namespace or self.namespace
932933
return self.AD.plugins.get_plugin_meta(namespace)
933934

934-
def friendly_name(self, entity_id: str, namespace: str | None = None) -> str:
935+
@utils.sync_decorator
936+
async def friendly_name(self, entity_id: str, namespace: str | None = None) -> str:
935937
"""Gets the Friendly Name of an entity.
936938
937939
Args:

0 commit comments

Comments
 (0)