Use tuple in test parametrization (#83379)

pull/83360/head^2
epenet 2022-12-06 09:46:10 +01:00 committed by GitHub
parent 7ed1d4988b
commit 0c9a78fb8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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,