Remove dead code from cast (#37620)

pull/37628/head
Franck Nijhof 2020-07-07 20:34:30 +02:00 committed by GitHub
parent 1499c0a563
commit 621c375a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -226,7 +226,6 @@ class CastDevice(MediaPlayerEntity):
self._hass_cast_controller: Optional[HomeAssistantController] = None
self._add_remove_handler = None
self._del_remove_handler = None
self._cast_view_remove_handler = None
async def async_added_to_hass(self):
@ -253,9 +252,6 @@ class CastDevice(MediaPlayerEntity):
if self._add_remove_handler:
self._add_remove_handler()
self._add_remove_handler = None
if self._del_remove_handler:
self._del_remove_handler()
self._del_remove_handler = None
if self._cast_view_remove_handler:
self._cast_view_remove_handler()
self._cast_view_remove_handler = None