diff --git a/homeassistant/components/apple_tv/manifest.json b/homeassistant/components/apple_tv/manifest.json index a22687c0fb5..1f7ac45372e 100644 --- a/homeassistant/components/apple_tv/manifest.json +++ b/homeassistant/components/apple_tv/manifest.json @@ -7,7 +7,7 @@ "documentation": "https://www.home-assistant.io/integrations/apple_tv", "iot_class": "local_push", "loggers": ["pyatv", "srptools"], - "requirements": ["pyatv==0.13.4"], + "requirements": ["pyatv==0.14.3"], "zeroconf": [ "_mediaremotetv._tcp.local.", "_companion-link._tcp.local.", diff --git a/homeassistant/components/apple_tv/media_player.py b/homeassistant/components/apple_tv/media_player.py index a70a30656f2..dd1f554919e 100644 --- a/homeassistant/components/apple_tv/media_player.py +++ b/homeassistant/components/apple_tv/media_player.py @@ -371,11 +371,15 @@ class AppleTvMediaPlayer(AppleTVEntity, MediaPlayerEntity): @property def repeat(self) -> RepeatMode | None: """Return current repeat mode.""" - if self._playing and self._is_feature_available(FeatureName.Repeat): + if ( + self._playing + and self._is_feature_available(FeatureName.Repeat) + and (repeat := self._playing.repeat) + ): return { RepeatState.Track: RepeatMode.ONE, RepeatState.All: RepeatMode.ALL, - }.get(self._playing.repeat, RepeatMode.OFF) + }.get(repeat, RepeatMode.OFF) return None @property diff --git a/requirements_all.txt b/requirements_all.txt index abe86ea184f..fa334ab6ea6 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1598,7 +1598,7 @@ pyatag==0.3.5.3 pyatmo==7.5.0 # homeassistant.components.apple_tv -pyatv==0.13.4 +pyatv==0.14.3 # homeassistant.components.aussie_broadband pyaussiebb==0.0.15 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 03fe4b9d577..c28a50a81ee 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1216,7 +1216,7 @@ pyatag==0.3.5.3 pyatmo==7.5.0 # homeassistant.components.apple_tv -pyatv==0.13.4 +pyatv==0.14.3 # homeassistant.components.aussie_broadband pyaussiebb==0.0.15