Bump pyatv to 0.7.7 (#47798)

* Bump pyatv to 0.7.7

* Change to assume name always exist in config entry
This commit is contained in:
Pierre Ståhl 2021-03-12 16:19:14 +01:00 committed by GitHub
parent 514516bacc
commit bf5028df2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

View file

@ -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

View file

@ -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.",

View file

@ -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

View file

@ -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