From 937b4866c3c2dc13cfd1ae1af8582c2ab80eb55f Mon Sep 17 00:00:00 2001 From: Erwin Douna Date: Wed, 18 Feb 2026 14:10:16 +0100 Subject: [PATCH] Proxmox polish strings & tests (#163361) --- .../components/proxmoxve/strings.json | 4 +-- .../proxmoxve/test_binary_sensor.py | 25 ++++--------------- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/homeassistant/components/proxmoxve/strings.json b/homeassistant/components/proxmoxve/strings.json index 413681a97491..b6e63ee802e6 100644 --- a/homeassistant/components/proxmoxve/strings.json +++ b/homeassistant/components/proxmoxve/strings.json @@ -58,7 +58,7 @@ }, "exceptions": { "cannot_connect": { - "message": "An error occurred while trying to connect to the Portainer instance: {error}" + "message": "An error occurred while trying to connect to the Proxmox VE instance: {error}" }, "invalid_auth": { "message": "An error occurred while trying to authenticate: {error}" @@ -70,7 +70,7 @@ "message": "An SSL error occurred: {error}" }, "timeout_connect": { - "message": "A timeout occurred while trying to connect to the Portainer instance: {error}" + "message": "A timeout occurred while trying to connect to the Proxmox VE instance: {error}" } }, "issues": { diff --git a/tests/components/proxmoxve/test_binary_sensor.py b/tests/components/proxmoxve/test_binary_sensor.py index fa427a6a46e5..7b21f4ff46a9 100644 --- a/tests/components/proxmoxve/test_binary_sensor.py +++ b/tests/components/proxmoxve/test_binary_sensor.py @@ -47,26 +47,11 @@ async def test_all_entities( @pytest.mark.parametrize( ("exception"), [ - ( - AuthenticationError("Invalid credentials"), - "invalid_auth", - ), - ( - SSLError("SSL handshake failed"), - "ssl_error", - ), - ( - ConnectTimeout("Connection timed out"), - "connect_timeout", - ), - ( - ResourceException, - "resource_exception", - ), - ( - requests.exceptions.ConnectionError, - "connection_error", - ), + (AuthenticationError("Invalid credentials")), + (SSLError("SSL handshake failed")), + (ConnectTimeout("Connection timed out")), + (ResourceException), + (requests.exceptions.ConnectionError), ], ids=[ "auth_error",