diff --git a/esphome/mqtt.py b/esphome/mqtt.py index d24418cc8a..0d50edbc2c 100644 --- a/esphome/mqtt.py +++ b/esphome/mqtt.py @@ -159,7 +159,7 @@ def get_esphome_device_ip( username: str | None = None, password: str | None = None, client_id: str | None = None, - timeout=25, + timeout: int | float = 25, ) -> list[str]: if CONF_MQTT not in config: raise EsphomeError(