Compare commits

...

4 Commits

Author SHA1 Message Date
Stefan Agner ba625e5098 Drop unused ATTR_LOCATION import 2026-05-20 11:44:11 +02:00
copilot-swe-agent[bot] cbfc323f04 Drop unused KEY_TO_UPDATE_TYPES and ATTR_STATE in hassio const
Agent-Logs-Url: https://github.com/home-assistant/core/sessions/cce88fc6-5dd6-48c2-a981-10954ad09082

Co-authored-by: agners <34061+agners@users.noreply.github.com>
2026-05-20 09:20:03 +00:00
copilot-swe-agent[bot] f083852511 Use shared ATTR_LOCATION and ATTR_STATE constants in hassio
Agent-Logs-Url: https://github.com/home-assistant/core/sessions/42eee317-d7ee-43a7-862c-a92f7a796969

Co-authored-by: agners <34061+agners@users.noreply.github.com>
2026-05-19 13:59:59 +00:00
copilot-swe-agent[bot] dc97d8c096 Initial plan 2026-05-19 13:52:08 +00:00
2 changed files with 1 additions and 19 deletions
-17
View File
@@ -131,12 +131,8 @@ ATTR_AUTO_UPDATE = "auto_update"
ATTR_VERSION = "version"
ATTR_VERSION_LATEST = "version_latest"
ATTR_CPU_PERCENT = "cpu_percent"
# pylint: disable-next=home-assistant-duplicate-const
ATTR_LOCATION = "location"
ATTR_MEMORY_PERCENT = "memory_percent"
ATTR_SLUG = "slug"
# pylint: disable-next=home-assistant-duplicate-const
ATTR_STATE = "state"
ATTR_STARTED = "started"
ATTR_URL = "url"
ATTR_REPOSITORY = "repository"
@@ -177,19 +173,6 @@ CORE_CONTAINER = "homeassistant"
SUPERVISOR_CONTAINER = "hassio_supervisor"
CONTAINER_STATS = "stats"
CONTAINER_INFO = "info"
# This is a mapping of which endpoint the key in the addon data
# is obtained from so we know which endpoint to update when the
# coordinator polls for updates.
KEY_TO_UPDATE_TYPES: dict[str, set[str]] = {
ATTR_VERSION_LATEST: {CONTAINER_INFO},
ATTR_MEMORY_PERCENT: {CONTAINER_STATS},
ATTR_CPU_PERCENT: {CONTAINER_STATS},
ATTR_VERSION: {CONTAINER_INFO},
ATTR_STATE: {CONTAINER_INFO},
}
REQUEST_REFRESH_DELAY = 10
HELP_URLS = {
+1 -2
View File
@@ -15,7 +15,7 @@ from aiohasupervisor.models import (
)
import voluptuous as vol
from homeassistant.const import ATTR_DEVICE_ID, ATTR_NAME
from homeassistant.const import ATTR_DEVICE_ID, ATTR_LOCATION, ATTR_NAME
from homeassistant.core import (
HomeAssistant,
ServiceCall,
@@ -43,7 +43,6 @@ from .const import (
ATTR_HOMEASSISTANT,
ATTR_HOMEASSISTANT_EXCLUDE_DATABASE,
ATTR_INPUT,
ATTR_LOCATION,
ATTR_PASSWORD,
ATTR_SLUG,
DOMAIN,