diff --git a/homeassistant/components/apple_tv/__init__.py b/homeassistant/components/apple_tv/__init__.py index 75c4d6ccc8a..6460a501992 100644 --- a/homeassistant/components/apple_tv/__init__.py +++ b/homeassistant/components/apple_tv/__init__.py @@ -181,7 +181,7 @@ class AppleTVManager: This is a callback function from pyatv.interface.DeviceListener. """ _LOGGER.warning( - 'Connection lost to Apple TV "%s"', self.config_entry.data.get(CONF_NAME) + 'Connection lost to Apple TV "%s"', self.config_entry.data[CONF_NAME] ) self._connection_was_lost = True self._handle_disconnect() @@ -268,7 +268,7 @@ class AppleTVManager: """Problem to authenticate occurred that needs intervention.""" _LOGGER.debug("Authentication error, reconfigure integration") - name = self.config_entry.data.get(CONF_NAME) + name = self.config_entry.data[CONF_NAME] identifier = self.config_entry.unique_id self.hass.components.persistent_notification.create( @@ -337,7 +337,8 @@ class AppleTVManager: self._connection_attempts = 0 if self._connection_was_lost: _LOGGER.info( - 'Connection was re-established to Apple TV "%s"', self.atv.service.name + 'Connection was re-established to Apple TV "%s"', + self.config_entry.data[CONF_NAME], ) self._connection_was_lost = False diff --git a/homeassistant/components/apple_tv/manifest.json b/homeassistant/components/apple_tv/manifest.json index 66ae2864dc4..a60c5db3a06 100644 --- a/homeassistant/components/apple_tv/manifest.json +++ b/homeassistant/components/apple_tv/manifest.json @@ -4,7 +4,7 @@ "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/apple_tv", "requirements": [ - "pyatv==0.7.6" + "pyatv==0.7.7" ], "zeroconf": [ "_mediaremotetv._tcp.local.", diff --git a/requirements_all.txt b/requirements_all.txt index bcea3b679b8..a6a280a5311 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1278,7 +1278,7 @@ pyatmo==4.2.2 pyatome==0.1.1 # homeassistant.components.apple_tv -pyatv==0.7.6 +pyatv==0.7.7 # homeassistant.components.bbox pybbox==0.0.5-alpha diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 1a9c1bd7b9d..b89ac619320 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -673,7 +673,7 @@ pyatag==0.3.5.3 pyatmo==4.2.2 # homeassistant.components.apple_tv -pyatv==0.7.6 +pyatv==0.7.7 # homeassistant.components.blackbird pyblackbird==0.5