mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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(
|
@pytest.mark.parametrize(
|
||||||
"device_class",
|
"device_class",
|
||||||
{
|
(
|
||||||
SensorDeviceClass.DATE,
|
SensorDeviceClass.DATE,
|
||||||
SensorDeviceClass.ENUM,
|
SensorDeviceClass.ENUM,
|
||||||
SensorDeviceClass.TIMESTAMP,
|
SensorDeviceClass.TIMESTAMP,
|
||||||
},
|
),
|
||||||
)
|
)
|
||||||
async def test_non_numeric_device_class_with_state_class(
|
async def test_non_numeric_device_class_with_state_class(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
@ -1054,11 +1054,11 @@ async def test_non_numeric_device_class_with_state_class(
|
|||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"device_class",
|
"device_class",
|
||||||
{
|
(
|
||||||
SensorDeviceClass.DATE,
|
SensorDeviceClass.DATE,
|
||||||
SensorDeviceClass.ENUM,
|
SensorDeviceClass.ENUM,
|
||||||
SensorDeviceClass.TIMESTAMP,
|
SensorDeviceClass.TIMESTAMP,
|
||||||
},
|
),
|
||||||
)
|
)
|
||||||
async def test_non_numeric_device_class_with_unit_of_measurement(
|
async def test_non_numeric_device_class_with_unit_of_measurement(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user