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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 88 additions and 7 deletions

View file

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