mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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
@ -242,7 +242,8 @@ class CastDevice:
|
|||||||
self._status_listener.invalidate()
|
self._status_listener.invalidate()
|
||||||
self._status_listener = None
|
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."""
|
"""Handle discovery of new Chromecast."""
|
||||||
if self._cast_info.uuid != discover.uuid:
|
if self._cast_info.uuid != discover.uuid:
|
||||||
# Discovered is not our device.
|
# Discovered is not our device.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user