Remove pragma from discover check. (#68002)

This commit is contained in:
jan iversen
2022-03-11 18:58:18 +01:00
committed by GitHub
parent 4de59b065a
commit d2e5c85429
13 changed files with 88 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ async def async_setup_platform(
) -> None:
"""Set up the Modbus sensors."""
if discovery_info is None: # pragma: no cover
if discovery_info is None:
return
sensors: list[ModbusRegisterSensor | SlaveSensor] = []