mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Correct doc strings for Hassio component (#101530)
This commit is contained in:
parent
d2c842ee0c
commit
10dcdbf537
@ -181,12 +181,12 @@ class SupervisorOSUpdateEntity(HassioOSEntity, UpdateEntity):
|
||||
|
||||
@property
|
||||
def latest_version(self) -> str:
|
||||
"""Return native value of entity."""
|
||||
"""Return the latest version."""
|
||||
return self.coordinator.data[DATA_KEY_OS][ATTR_VERSION_LATEST]
|
||||
|
||||
@property
|
||||
def installed_version(self) -> str:
|
||||
"""Return native value of entity."""
|
||||
"""Return the installed version."""
|
||||
return self.coordinator.data[DATA_KEY_OS][ATTR_VERSION]
|
||||
|
||||
@property
|
||||
@ -224,12 +224,12 @@ class SupervisorSupervisorUpdateEntity(HassioSupervisorEntity, UpdateEntity):
|
||||
|
||||
@property
|
||||
def latest_version(self) -> str:
|
||||
"""Return native value of entity."""
|
||||
"""Return the latest version."""
|
||||
return self.coordinator.data[DATA_KEY_SUPERVISOR][ATTR_VERSION_LATEST]
|
||||
|
||||
@property
|
||||
def installed_version(self) -> str:
|
||||
"""Return native value of entity."""
|
||||
"""Return the installed version."""
|
||||
return self.coordinator.data[DATA_KEY_SUPERVISOR][ATTR_VERSION]
|
||||
|
||||
@property
|
||||
@ -274,12 +274,12 @@ class SupervisorCoreUpdateEntity(HassioCoreEntity, UpdateEntity):
|
||||
|
||||
@property
|
||||
def latest_version(self) -> str:
|
||||
"""Return native value of entity."""
|
||||
"""Return the latest version."""
|
||||
return self.coordinator.data[DATA_KEY_CORE][ATTR_VERSION_LATEST]
|
||||
|
||||
@property
|
||||
def installed_version(self) -> str:
|
||||
"""Return native value of entity."""
|
||||
"""Return the installed version."""
|
||||
return self.coordinator.data[DATA_KEY_CORE][ATTR_VERSION]
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user