mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Use tuple in test parametrization (#83379)
This commit is contained in:
parent
7ed1d4988b
commit
0c9a78fb8e
@ -1020,11 +1020,11 @@ async def test_invalid_enumeration_entity_without_device_class(
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"device_class",
|
||||
{
|
||||
(
|
||||
SensorDeviceClass.DATE,
|
||||
SensorDeviceClass.ENUM,
|
||||
SensorDeviceClass.TIMESTAMP,
|
||||
},
|
||||
),
|
||||
)
|
||||
async def test_non_numeric_device_class_with_state_class(
|
||||
hass: HomeAssistant,
|
||||
@ -1054,11 +1054,11 @@ async def test_non_numeric_device_class_with_state_class(
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"device_class",
|
||||
{
|
||||
(
|
||||
SensorDeviceClass.DATE,
|
||||
SensorDeviceClass.ENUM,
|
||||
SensorDeviceClass.TIMESTAMP,
|
||||
},
|
||||
),
|
||||
)
|
||||
async def test_non_numeric_device_class_with_unit_of_measurement(
|
||||
hass: HomeAssistant,
|
||||
|
Loading…
x
Reference in New Issue
Block a user