Use Platform constant in tests (#145801)

* Use Platform constant in tests

* spelling

* Fix platform
This commit is contained in:
epenet
2025-05-28 15:51:37 +02:00
committed by GitHub
parent 1889f0ef66
commit c3ade400fb
30 changed files with 107 additions and 57 deletions

View File

@@ -31,6 +31,7 @@ from homeassistant.const import (
PERCENTAGE,
STATE_UNKNOWN,
EntityCategory,
Platform,
UnitOfApparentPower,
UnitOfArea,
UnitOfBloodGlucoseConcentration,
@@ -2704,7 +2705,7 @@ async def test_name(hass: HomeAssistant) -> None:
) -> bool:
"""Set up test config entry."""
await hass.config_entries.async_forward_entry_setups(
config_entry, [SENSOR_DOMAIN]
config_entry, [Platform.SENSOR]
)
return True