mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Use Platform constant in tests (#145801)
* Use Platform constant in tests * spelling * Fix platform
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user