Make cast async_cast_discovered a callback function (#113111)
Nothing was being awaited here and this function is never subclassed
This commit is contained in:
parent
620433a79d
commit
5dc44500c3
1 changed files with 2 additions and 1 deletions
|
@ -242,7 +242,8 @@ class CastDevice:
|
|||
self._status_listener.invalidate()
|
||||
self._status_listener = None
|
||||
|
||||
async def _async_cast_discovered(self, discover: ChromecastInfo) -> None:
|
||||
@callback
|
||||
def _async_cast_discovered(self, discover: ChromecastInfo) -> None:
|
||||
"""Handle discovery of new Chromecast."""
|
||||
if self._cast_info.uuid != discover.uuid:
|
||||
# Discovered is not our device.
|
||||
|
|
Loading…
Add table
Reference in a new issue