From e812d8683a22e3d315e8d23cc6a08892c1c9d584 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 20 Dec 2025 07:23:55 -1000 Subject: [PATCH] tests --- tests/integration/test_api_homeassistant.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration/test_api_homeassistant.py b/tests/integration/test_api_homeassistant.py index 1343691f5fc..c297f5be485 100644 --- a/tests/integration/test_api_homeassistant.py +++ b/tests/integration/test_api_homeassistant.py @@ -179,6 +179,12 @@ async def test_api_homeassistant( client.send_home_assistant_state("binary_sensor.external_motion", "", "ON") client.send_home_assistant_state("weather.home", "condition", "sunny") + # Test edge cases for zero-copy implementation safety + # Empty entity_id should be silently ignored (no crash) + client.send_home_assistant_state("", "", "should_be_ignored") + # Empty state with valid entity should work + client.send_home_assistant_state("sensor.external_temperature", "", "") + # List entities and services _, services = await client.list_entities_services()