Ensure entity platform in bluetooth tests (#135716)

This commit is contained in:
G Johansson 2025-01-16 08:24:37 +01:00 committed by GitHub
parent e886c9e054
commit a8645ea4ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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