File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -91,4 +91,9 @@ async def addon_stats(self, addon: str) -> AddonsStats:
9191 result = await self ._client .get (f"addons/{ addon } /stats" )
9292 return AddonsStats .from_dict (result .data )
9393
94+ # Aliases for clarity
95+ set_addon_options = addon_options
96+ write_addon_stdin = addon_stdin
97+ set_addon_security = addon_security
98+
9499 # Omitted for now - Log endpoints
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ async def test_addons_options(
119119 """Test addon options API."""
120120 responses .post (f"{ SUPERVISOR_URL } /addons/core_ssh/options" , status = 200 )
121121 assert (
122- await supervisor_client .addons .addon_options (
122+ await supervisor_client .addons .set_addon_options (
123123 "core_ssh" ,
124124 AddonsOptions (
125125 config = None ,
@@ -195,7 +195,8 @@ async def test_addons_stdin(
195195 """Test addon stdin API."""
196196 responses .post (f"{ SUPERVISOR_URL } /addons/core_ssh/stdin" , status = 200 )
197197 assert (
198- await supervisor_client .addons .addon_stdin ("core_ssh" , b"hello world" ) is None
198+ await supervisor_client .addons .write_addon_stdin ("core_ssh" , b"hello world" )
199+ is None
199200 )
200201 assert len (responses .requests ) == 1
201202 assert (
@@ -212,7 +213,7 @@ async def test_addons_security(
212213 """Test addon security API."""
213214 responses .post (f"{ SUPERVISOR_URL } /addons/core_ssh/security" , status = 200 )
214215 assert (
215- await supervisor_client .addons .addon_security (
216+ await supervisor_client .addons .set_addon_security (
216217 "core_ssh" , AddonsSecurityOptions (protected = True )
217218 )
218219 is None
You can’t perform that action at this time.
0 commit comments