1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Add start transient unit dbus method (#4237)

This commit is contained in:
Mike Degatano
2023-04-12 13:08:02 -04:00
committed by GitHub
parent f5b6feec77
commit dc4a753fe3
5 changed files with 105 additions and 20 deletions

View File

@@ -664,6 +664,13 @@ class Systemd(DBusServiceMock):
"""Restart a service unit."""
return "/org/freedesktop/systemd1/job/7623"
@dbus_method()
def StartTransientUnit(
self, name: "s", mode: "s", properties: "a(sv)", aux: "a(sa(sv))"
) -> "o":
"""Start a transient service unit."""
return "/org/freedesktop/systemd1/job/7623"
@dbus_method()
def ListUnits(
self,