mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Ensure entity platform in bluetooth tests (#135716)
This commit is contained in:
parent
e886c9e054
commit
a8645ea4ed
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user