-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Add Portainer integration #142875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
erwindouna
wants to merge
71
commits into
home-assistant:dev
Choose a base branch
from
erwindouna:portainer-integration
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add Portainer integration #142875
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
ddae633
Initial setup
erwindouna 7ac1d08
Merge branch 'dev' into portainer-integration
erwindouna 4670db9
Add initial Coordinator
erwindouna 8dc4952
Basic enpoint setup
erwindouna f2830bc
Base setup for containers
erwindouna 69cd2a3
Merge branch 'dev' into portainer-integration
erwindouna 42f61f9
Change mapping of the ID to be the container ID
erwindouna 2655bb4
Fix
erwindouna f1d4e9e
Polishing and adding tests
erwindouna 0c749a4
Expand tests and polish conftest
erwindouna 051d17e
Merge branch 'dev' into portainer-integration
erwindouna a9d7332
Update homeassistant/components/portainer/binary_sensor.py
erwindouna 0f733d3
Update homeassistant/components/portainer/config_flow.py
erwindouna 080e192
Update homeassistant/components/portainer/coordinator.py
erwindouna cbc2381
Update homeassistant/components/portainer/binary_sensor.py
erwindouna d88767b
First feedback route
erwindouna 7a76d54
Review feedback
erwindouna 7dc42dd
Update homeassistant/components/portainer/binary_sensor.py
erwindouna dcc6084
Update homeassistant/components/portainer/binary_sensor.py
erwindouna 3235c19
Update homeassistant/components/portainer/binary_sensor.py
erwindouna 67b1340
Update tests/components/portainer/test_binary_sensor.py
erwindouna b9b6567
Rest feedback
erwindouna a6c8955
Description
erwindouna 63fc569
Merge branch 'dev' into portainer-integration
erwindouna 48805e0
Recover
erwindouna 35f4586
Fix import
erwindouna 0da8b46
Update homeassistant/components/portainer/__init__.py
erwindouna 85269b1
Update homeassistant/components/portainer/__init__.py
erwindouna 366fbcf
Update homeassistant/components/portainer/config_flow.py
erwindouna be9e202
Update homeassistant/components/portainer/config_flow.py
erwindouna bc9da5a
Update homeassistant/components/portainer/quality_scale.yaml
erwindouna 7d552f1
Update homeassistant/components/portainer/coordinator.py
erwindouna ccb2a04
Update homeassistant/components/portainer/coordinator.py
erwindouna 92c91e8
Update homeassistant/components/portainer/__init__.py
erwindouna 51c1b32
Feedback fixes
erwindouna 2a7a540
Merge branch 'dev' into portainer-integration
erwindouna 1cb1627
Update homeassistant/components/portainer/config_flow.py
erwindouna 506f37d
Update homeassistant/components/portainer/config_flow.py
erwindouna 87599ba
Update homeassistant/components/portainer/config_flow.py
erwindouna 28cde55
Feedback fixes
erwindouna 1ea0c55
Update pyportainer to 0.1.5 & strict-typing
erwindouna aac0f8d
Update homeassistant/components/portainer/coordinator.py
erwindouna 0e683f2
Update homeassistant/components/portainer/strings.json
erwindouna 19a9d19
Update homeassistant/components/portainer/strings.json
erwindouna c2a718a
Update homeassistant/components/portainer/entity.py
erwindouna 48c90b7
Update homeassistant/components/portainer/coordinator.py
erwindouna 1dd7a92
Update homeassistant/components/portainer/coordinator.py
erwindouna 9b08e52
Update homeassistant/components/portainer/binary_sensor.py
erwindouna 6f4c1fa
Merge branch 'dev' into portainer-integration
erwindouna ce1f523
Update homeassistant/components/portainer/binary_sensor.py
erwindouna e2b0ced
Update homeassistant/components/portainer/binary_sensor.py
erwindouna 335974f
Update homeassistant/components/portainer/binary_sensor.py
erwindouna 939a0ef
Feedback review
erwindouna c084994
Unique ID
erwindouna 2077dfd
Update ID
erwindouna 933a9d2
Update homeassistant/components/portainer/config_flow.py
erwindouna fa3a3d9
Update homeassistant/components/portainer/entity.py
erwindouna ba12c4c
Update homeassistant/components/portainer/binary_sensor.py
erwindouna ab67089
Feedback fixes
erwindouna 34ad6b1
Merge branch 'dev' into portainer-integration
erwindouna 8192dab
Ruff fix
erwindouna e73fa14
Update homeassistant/components/portainer/strings.json
erwindouna 0b13c51
Update homeassistant/components/portainer/coordinator.py
erwindouna 26a958c
Feedback
erwindouna 25a3fdc
Typo
erwindouna 225d82e
Feedback
erwindouna fef7dd4
Merge branch 'dev' into portainer-integration
erwindouna 18e8c29
Merge branch 'dev' into portainer-integration
erwindouna b0cdf28
Merge branch 'dev' into portainer-integration
erwindouna 38c13ce
Minor fixes
erwindouna 525cd3c
CI feedback
erwindouna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Ruff fix
- Loading branch information
commit 8192dabf7029c4fb6c0ab1ca7626aa057bde6183
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -5,7 +5,6 @@ | |||||
from homeassistant.helpers.device_registry import DeviceInfo | ||||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity | ||||||
|
||||||
from . import PortainerConfigEntry | ||||||
from .const import DEFAULT_NAME, DOMAIN | ||||||
from .coordinator import PortainerCoordinator, PortainerCoordinatorData | ||||||
|
||||||
|
@@ -29,7 +28,9 @@ def __init__( | |||||
self._device_info = device_info | ||||||
self.device_id = self._device_info.endpoint.id | ||||||
self._attr_device_info = DeviceInfo( | ||||||
identifiers={(DOMAIN, f"{coordinator.config_entry.entry_id}_{self.device_id}")}, | ||||||
identifiers={ | ||||||
(DOMAIN, f"{coordinator.config_entry.entry_id}_{self.device_id}") | ||||||
}, | ||||||
manufacturer=DEFAULT_NAME, | ||||||
model="Endpoint", | ||||||
name=self._device_info.endpoint.name, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how unique is the device id?