diff --git a/homeassistant/components/ps4/manifest.json b/homeassistant/components/ps4/manifest.json index aab01d0eda2..fa1d998cd5b 100644 --- a/homeassistant/components/ps4/manifest.json +++ b/homeassistant/components/ps4/manifest.json @@ -4,7 +4,7 @@ "config_flow": true, "documentation": "https://www.home-assistant.io/components/ps4", "requirements": [ - "pyps4-homeassistant==0.8.3" + "pyps4-homeassistant==0.8.5" ], "dependencies": [], "codeowners": [ diff --git a/homeassistant/components/ps4/media_player.py b/homeassistant/components/ps4/media_player.py index f1d78564674..ec70a2cfb0e 100644 --- a/homeassistant/components/ps4/media_player.py +++ b/homeassistant/components/ps4/media_player.py @@ -161,13 +161,12 @@ class PS4Device(MediaPlayerDevice): if self._ps4.ddp_protocol is None: # Use socket.socket. await self.hass.async_add_executor_job(self._ps4.get_status) + if self._info is None: + # Add entity to registry. + await self.async_get_device_info(self._ps4.status) self._ps4.ddp_protocol = self.hass.data[PS4_DATA].protocol self.subscribe_to_protocol() - if self._ps4.status is not None: - if self._info is None: - # Add entity to registry. - await self.async_get_device_info(self._ps4.status) self._parse_status() def _parse_status(self): diff --git a/requirements_all.txt b/requirements_all.txt index 3bf2647b442..180f1ec2edb 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1307,7 +1307,7 @@ pypjlink2==1.2.0 pypoint==1.1.1 # homeassistant.components.ps4 -pyps4-homeassistant==0.8.3 +pyps4-homeassistant==0.8.5 # homeassistant.components.qwikswitch pyqwikswitch==0.93 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 6e02a78bb57..5b435cce241 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -281,7 +281,7 @@ pyopenuv==1.0.9 pyotp==2.2.7 # homeassistant.components.ps4 -pyps4-homeassistant==0.8.3 +pyps4-homeassistant==0.8.5 # homeassistant.components.qwikswitch pyqwikswitch==0.93