Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
HomeAssistant
Core
Commits
faf85419
Unverified
Commit
faf85419
authored
3 years ago
by
Erik Montnemery
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add support for removing Google Cast devices (#66808)
parent
f1648960
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
homeassistant/components/cast/__init__.py
+11
-1
11 additions, 1 deletion
homeassistant/components/cast/__init__.py
with
11 additions
and
1 deletion
homeassistant/components/cast/__init__.py
+
11
−
1
View file @
faf85419
...
...
@@ -12,7 +12,7 @@ from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from
homeassistant.const
import
Platform
from
homeassistant.core
import
HomeAssistant
from
homeassistant.exceptions
import
HomeAssistantError
from
homeassistant.helpers
import
config_validation
as
cv
from
homeassistant.helpers
import
config_validation
as
cv
,
device_registry
as
dr
from
homeassistant.helpers.integration_platform
import
(
async_process_integration_platforms
,
)
...
...
@@ -113,3 +113,13 @@ async def _register_cast_platform(
async
def
async_remove_entry
(
hass
:
HomeAssistant
,
entry
:
ConfigEntry
)
->
None
:
"""
Remove Home Assistant Cast user.
"""
await
home_assistant_cast
.
async_remove_user
(
hass
,
entry
)
async
def
async_remove_config_entry_device
(
hass
:
HomeAssistant
,
config_entry
:
ConfigEntry
,
device_entry
:
dr
.
DeviceEntry
)
->
bool
:
"""
Remove cast config entry from a device.
The actual cleanup is done in CastMediaPlayerEntity.async_will_remove_from_hass.
"""
return
True
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment