mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-28 11:36:32 +00:00
Add name setter
This commit is contained in:
parent
b99ed631c5
commit
488a2327fb
@ -34,6 +34,11 @@ class SupervisorJob(CoreSysAttributes):
|
|||||||
"""Return the name for the job."""
|
"""Return the name for the job."""
|
||||||
return self._name or self.id
|
return self._name or self.id
|
||||||
|
|
||||||
|
@name.setter
|
||||||
|
def name(self, value: str) -> None:
|
||||||
|
"""Set the name of a job."""
|
||||||
|
self._name = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def progress(self) -> int:
|
def progress(self) -> int:
|
||||||
"""Return the current progress."""
|
"""Return the current progress."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user