From d5a8fa9c5c7ef6db08c4c0990a9a4c41be417d84 Mon Sep 17 00:00:00 2001 From: Manu <4445816+tr4nt0r@users.noreply.github.com> Date: Tue, 24 Jun 2025 17:17:02 +0200 Subject: [PATCH] Add DHCP discovery to PlayStation Network integration (#147422) Add DHCP discovery for PSN --- .../playstation_network/manifest.json | 59 ++++++++++++++ .../playstation_network/quality_scale.yaml | 2 +- homeassistant/generated/dhcp.py | 76 +++++++++++++++++++ 3 files changed, 136 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/playstation_network/manifest.json b/homeassistant/components/playstation_network/manifest.json index f929e569b66..bdcb77f92c3 100644 --- a/homeassistant/components/playstation_network/manifest.json +++ b/homeassistant/components/playstation_network/manifest.json @@ -3,6 +3,65 @@ "name": "PlayStation Network", "codeowners": ["@jackjpowell"], "config_flow": true, + "dhcp": [ + { + "macaddress": "AC8995*" + }, + { + "macaddress": "1C98C1*" + }, + { + "macaddress": "5C843C*" + }, + { + "macaddress": "605BB4*" + }, + { + "macaddress": "8060B7*" + }, + { + "macaddress": "78C881*" + }, + { + "macaddress": "00D9D1*" + }, + { + "macaddress": "00E421*" + }, + { + "macaddress": "0CFE45*" + }, + { + "macaddress": "2CCC44*" + }, + { + "macaddress": "BC60A7*" + }, + { + "macaddress": "C863F1*" + }, + { + "macaddress": "F8461C*" + }, + { + "macaddress": "70662A*" + }, + { + "macaddress": "09E29*" + }, + { + "macaddress": "B40AD8*" + }, + { + "macaddress": "A8474A*" + }, + { + "macaddress": "280DFC*" + }, + { + "macaddress": "D44B5E*" + } + ], "documentation": "https://www.home-assistant.io/integrations/playstation_network", "integration_type": "service", "iot_class": "cloud_polling", diff --git a/homeassistant/components/playstation_network/quality_scale.yaml b/homeassistant/components/playstation_network/quality_scale.yaml index d5152927b99..e173c4a710c 100644 --- a/homeassistant/components/playstation_network/quality_scale.yaml +++ b/homeassistant/components/playstation_network/quality_scale.yaml @@ -48,7 +48,7 @@ rules: discovery-update-info: status: exempt comment: Discovery flow is not applicable for this integration - discovery: todo + discovery: done docs-data-update: done docs-examples: todo docs-known-limitations: done diff --git a/homeassistant/generated/dhcp.py b/homeassistant/generated/dhcp.py index 6213af63229..b253c5a553d 100644 --- a/homeassistant/generated/dhcp.py +++ b/homeassistant/generated/dhcp.py @@ -463,6 +463,82 @@ DHCP: Final[list[dict[str, str | bool]]] = [ "domain": "palazzetti", "registered_devices": True, }, + { + "domain": "playstation_network", + "macaddress": "AC8995*", + }, + { + "domain": "playstation_network", + "macaddress": "1C98C1*", + }, + { + "domain": "playstation_network", + "macaddress": "5C843C*", + }, + { + "domain": "playstation_network", + "macaddress": "605BB4*", + }, + { + "domain": "playstation_network", + "macaddress": "8060B7*", + }, + { + "domain": "playstation_network", + "macaddress": "78C881*", + }, + { + "domain": "playstation_network", + "macaddress": "00D9D1*", + }, + { + "domain": "playstation_network", + "macaddress": "00E421*", + }, + { + "domain": "playstation_network", + "macaddress": "0CFE45*", + }, + { + "domain": "playstation_network", + "macaddress": "2CCC44*", + }, + { + "domain": "playstation_network", + "macaddress": "BC60A7*", + }, + { + "domain": "playstation_network", + "macaddress": "C863F1*", + }, + { + "domain": "playstation_network", + "macaddress": "F8461C*", + }, + { + "domain": "playstation_network", + "macaddress": "70662A*", + }, + { + "domain": "playstation_network", + "macaddress": "09E29*", + }, + { + "domain": "playstation_network", + "macaddress": "B40AD8*", + }, + { + "domain": "playstation_network", + "macaddress": "A8474A*", + }, + { + "domain": "playstation_network", + "macaddress": "280DFC*", + }, + { + "domain": "playstation_network", + "macaddress": "D44B5E*", + }, { "domain": "powerwall", "hostname": "1118431-*",