mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 14:45:09 +02:00
Correct doc strings for Hassio component (#101530)
This commit is contained in:
@@ -181,17 +181,17 @@ class SupervisorOSUpdateEntity(HassioOSEntity, UpdateEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def latest_version(self) -> str:
|
def latest_version(self) -> str:
|
||||||
"""Return native value of entity."""
|
"""Return the latest version."""
|
||||||
return self.coordinator.data[DATA_KEY_OS][ATTR_VERSION_LATEST]
|
return self.coordinator.data[DATA_KEY_OS][ATTR_VERSION_LATEST]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def installed_version(self) -> str:
|
def installed_version(self) -> str:
|
||||||
"""Return native value of entity."""
|
"""Return the installed version."""
|
||||||
return self.coordinator.data[DATA_KEY_OS][ATTR_VERSION]
|
return self.coordinator.data[DATA_KEY_OS][ATTR_VERSION]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def entity_picture(self) -> str | None:
|
def entity_picture(self) -> str | None:
|
||||||
"""Return the iconof the entity."""
|
"""Return the icon of the entity."""
|
||||||
return "https://brands.home-assistant.io/homeassistant/icon.png"
|
return "https://brands.home-assistant.io/homeassistant/icon.png"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -224,12 +224,12 @@ class SupervisorSupervisorUpdateEntity(HassioSupervisorEntity, UpdateEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def latest_version(self) -> str:
|
def latest_version(self) -> str:
|
||||||
"""Return native value of entity."""
|
"""Return the latest version."""
|
||||||
return self.coordinator.data[DATA_KEY_SUPERVISOR][ATTR_VERSION_LATEST]
|
return self.coordinator.data[DATA_KEY_SUPERVISOR][ATTR_VERSION_LATEST]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def installed_version(self) -> str:
|
def installed_version(self) -> str:
|
||||||
"""Return native value of entity."""
|
"""Return the installed version."""
|
||||||
return self.coordinator.data[DATA_KEY_SUPERVISOR][ATTR_VERSION]
|
return self.coordinator.data[DATA_KEY_SUPERVISOR][ATTR_VERSION]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -247,7 +247,7 @@ class SupervisorSupervisorUpdateEntity(HassioSupervisorEntity, UpdateEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def entity_picture(self) -> str | None:
|
def entity_picture(self) -> str | None:
|
||||||
"""Return the iconof the entity."""
|
"""Return the icon of the entity."""
|
||||||
return "https://brands.home-assistant.io/hassio/icon.png"
|
return "https://brands.home-assistant.io/hassio/icon.png"
|
||||||
|
|
||||||
async def async_install(
|
async def async_install(
|
||||||
@@ -274,17 +274,17 @@ class SupervisorCoreUpdateEntity(HassioCoreEntity, UpdateEntity):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def latest_version(self) -> str:
|
def latest_version(self) -> str:
|
||||||
"""Return native value of entity."""
|
"""Return the latest version."""
|
||||||
return self.coordinator.data[DATA_KEY_CORE][ATTR_VERSION_LATEST]
|
return self.coordinator.data[DATA_KEY_CORE][ATTR_VERSION_LATEST]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def installed_version(self) -> str:
|
def installed_version(self) -> str:
|
||||||
"""Return native value of entity."""
|
"""Return the installed version."""
|
||||||
return self.coordinator.data[DATA_KEY_CORE][ATTR_VERSION]
|
return self.coordinator.data[DATA_KEY_CORE][ATTR_VERSION]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def entity_picture(self) -> str | None:
|
def entity_picture(self) -> str | None:
|
||||||
"""Return the iconof the entity."""
|
"""Return the icon of the entity."""
|
||||||
return "https://brands.home-assistant.io/homeassistant/icon.png"
|
return "https://brands.home-assistant.io/homeassistant/icon.png"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Reference in New Issue
Block a user