mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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:
parent
57502bc911
commit
b99275f6a5
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/components/ps4",
|
"documentation": "https://www.home-assistant.io/components/ps4",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pyps4-homeassistant==0.8.3"
|
"pyps4-homeassistant==0.8.5"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
@ -161,13 +161,12 @@ class PS4Device(MediaPlayerDevice):
|
|||||||
if self._ps4.ddp_protocol is None:
|
if self._ps4.ddp_protocol is None:
|
||||||
# Use socket.socket.
|
# Use socket.socket.
|
||||||
await self.hass.async_add_executor_job(self._ps4.get_status)
|
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._ps4.ddp_protocol = self.hass.data[PS4_DATA].protocol
|
||||||
self.subscribe_to_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()
|
self._parse_status()
|
||||||
|
|
||||||
def _parse_status(self):
|
def _parse_status(self):
|
||||||
|
@ -1307,7 +1307,7 @@ pypjlink2==1.2.0
|
|||||||
pypoint==1.1.1
|
pypoint==1.1.1
|
||||||
|
|
||||||
# homeassistant.components.ps4
|
# homeassistant.components.ps4
|
||||||
pyps4-homeassistant==0.8.3
|
pyps4-homeassistant==0.8.5
|
||||||
|
|
||||||
# homeassistant.components.qwikswitch
|
# homeassistant.components.qwikswitch
|
||||||
pyqwikswitch==0.93
|
pyqwikswitch==0.93
|
||||||
|
@ -281,7 +281,7 @@ pyopenuv==1.0.9
|
|||||||
pyotp==2.2.7
|
pyotp==2.2.7
|
||||||
|
|
||||||
# homeassistant.components.ps4
|
# homeassistant.components.ps4
|
||||||
pyps4-homeassistant==0.8.3
|
pyps4-homeassistant==0.8.5
|
||||||
|
|
||||||
# homeassistant.components.qwikswitch
|
# homeassistant.components.qwikswitch
|
||||||
pyqwikswitch==0.93
|
pyqwikswitch==0.93
|
||||||
|
Loading…
x
Reference in New Issue
Block a user