mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Align deviceinfo entries in pyLoad integration (#120478)
This commit is contained in:
parent
07b70cba10
commit
ba40340f82
@ -99,7 +99,7 @@ class PyLoadBinarySensor(CoordinatorEntity[PyLoadCoordinator], ButtonEntity):
|
||||
model=SERVICE_NAME,
|
||||
configuration_url=coordinator.pyload.api_url,
|
||||
identifiers={(DOMAIN, coordinator.config_entry.entry_id)},
|
||||
translation_key=DOMAIN,
|
||||
sw_version=coordinator.version,
|
||||
)
|
||||
|
||||
async def async_press(self) -> None:
|
||||
|
@ -34,7 +34,15 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType, StateTyp
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from . import PyLoadConfigEntry
|
||||
from .const import DEFAULT_HOST, DEFAULT_NAME, DEFAULT_PORT, DOMAIN, ISSUE_PLACEHOLDER
|
||||
from .const import (
|
||||
DEFAULT_HOST,
|
||||
DEFAULT_NAME,
|
||||
DEFAULT_PORT,
|
||||
DOMAIN,
|
||||
ISSUE_PLACEHOLDER,
|
||||
MANUFACTURER,
|
||||
SERVICE_NAME,
|
||||
)
|
||||
from .coordinator import PyLoadCoordinator
|
||||
|
||||
|
||||
@ -175,8 +183,8 @@ class PyLoadSensor(CoordinatorEntity[PyLoadCoordinator], SensorEntity):
|
||||
self.entity_description = entity_description
|
||||
self.device_info = DeviceInfo(
|
||||
entry_type=DeviceEntryType.SERVICE,
|
||||
manufacturer="PyLoad Team",
|
||||
model="pyLoad",
|
||||
manufacturer=MANUFACTURER,
|
||||
model=SERVICE_NAME,
|
||||
configuration_url=coordinator.pyload.api_url,
|
||||
identifiers={(DOMAIN, coordinator.config_entry.entry_id)},
|
||||
sw_version=coordinator.version,
|
||||
|
@ -35,7 +35,7 @@
|
||||
# name: test_state[button.pyload_abort_all_running_downloads-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'pyload Abort all running downloads',
|
||||
'friendly_name': 'pyLoad Abort all running downloads',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'button.pyload_abort_all_running_downloads',
|
||||
@ -81,7 +81,7 @@
|
||||
# name: test_state[button.pyload_delete_finished_files_packages-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'pyload Delete finished files/packages',
|
||||
'friendly_name': 'pyLoad Delete finished files/packages',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'button.pyload_delete_finished_files_packages',
|
||||
@ -127,7 +127,7 @@
|
||||
# name: test_state[button.pyload_restart_all_failed_files-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'pyload Restart all failed files',
|
||||
'friendly_name': 'pyLoad Restart all failed files',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'button.pyload_restart_all_failed_files',
|
||||
@ -173,7 +173,7 @@
|
||||
# name: test_state[button.pyload_restart_pyload_core-state]
|
||||
StateSnapshot({
|
||||
'attributes': ReadOnlyDict({
|
||||
'friendly_name': 'pyload Restart pyload core',
|
||||
'friendly_name': 'pyLoad Restart pyload core',
|
||||
}),
|
||||
'context': <ANY>,
|
||||
'entity_id': 'button.pyload_restart_pyload_core',
|
||||
|
Loading…
x
Reference in New Issue
Block a user