Improve type hints in dsmr tests (#123785)

This commit is contained in:
epenet 2024-08-13 12:18:59 +02:00 committed by GitHub
parent e15ac2fbe0
commit 193a7b7360
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1521,7 +1521,7 @@ async def test_gas_meter_providing_energy_reading(
)
def test_all_obis_references_exists():
def test_all_obis_references_exists() -> None:
"""Verify that all attributes exist by name in database."""
for sensor in SENSORS:
assert hasattr(obis_references, sensor.obis_reference)