File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments