From a8645ea4edd08aba570d6fbe7f19402a2e7d274c Mon Sep 17 00:00:00 2001 From: G Johansson Date: Thu, 16 Jan 2025 08:24:37 +0100 Subject: [PATCH] Ensure entity platform in bluetooth tests (#135716) --- tests/components/bluetooth/test_passive_update_processor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/components/bluetooth/test_passive_update_processor.py b/tests/components/bluetooth/test_passive_update_processor.py index d7a7a8ba08c..e9274965e3c 100644 --- a/tests/components/bluetooth/test_passive_update_processor.py +++ b/tests/components/bluetooth/test_passive_update_processor.py @@ -1808,6 +1808,7 @@ async def test_naming(hass: HomeAssistant) -> None: sensor_entity: PassiveBluetoothProcessorEntity = sensor_entities[0] sensor_entity.hass = hass + sensor_entity.platform = MockEntityPlatform(hass) assert sensor_entity.available is True assert sensor_entity.name is UNDEFINED assert sensor_entity.device_class is SensorDeviceClass.TEMPERATURE