Fix PS4 entities with shared host not updating and latency with multiple connections (#24642)

* correct assume info call

* 0.8.4

* 0.8.4

* 0.8.4

* 0.8.5

* 0.8.5

* 0.8.5

* revert condition
This commit is contained in:
ktnrg45 2019-06-23 08:52:53 -07:00 committed by Aaron Bach
parent 57502bc911
commit b99275f6a5
4 changed files with 6 additions and 7 deletions

View file

@ -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": [

View file

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

View file

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

View file

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